Skip to content

Commit

Permalink
Place config files in home directory + debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Frak committed Jun 12, 2022
1 parent 0346aeb commit 5aedc2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ $pip3 install netifaces‑0.10.6‑cp36‑cp36m‑win_amd64.whl
```

### 2022 Update
Newer versions of Python appear to break this. To use python 3.6.5 again, I had to use something like this using pyenv
Newer versions of Python appear to break this. To use python 3.6.5 again, I had to use `pyenv` like this:

```bash
brew install pyenv
pyenv install 3.6.5
pyenv local 3.6.5
~/.pyenv/shims/pip3 install --upgrade pip
~/.pyenv/shims/pip3 install appJar lifxlan colour configobj numpy mss scipy pillow
Expand Down
6 changes: 3 additions & 3 deletions lights.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def abs_resource_path(relative_path):

elif (myos == 'Darwin') or (myos == 'Linux') :
""" Get absolute path to resource, works for dev and for PyInstaller """
base_path = os.path.dirname(os.path.abspath(__file__))
return os.path.join(base_path, relative_path)
#base_path = os.path.dirname(os.path.abspath(__file__))
return os.path.join(os.getenv("HOME"), relative_path)


def resource_path(relative_path):
Expand Down Expand Up @@ -1558,7 +1558,7 @@ def function_name():
#print("type(config['bulbs']):",type(config['bulbs']))
if os.path.exists(PICKLE):
bulbPickle = pkl.load(open(PICKLE, "rb")) #this reads the pickle
#print (bulbPickle)
print ("bulbPickle: ",bulbPickle)
bulbList.clear()
bulbList.append("-Select Bulb-")
bulbList.append("Select All Bulbs In LAN")
Expand Down

0 comments on commit 5aedc2f

Please sign in to comment.