Skip to content

Commit 5aedc2f

Browse files
author
Frak
committed
Place config files in home directory + debug
1 parent 0346aeb commit 5aedc2f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ $pip3 install netifaces‑0.10.6‑cp36‑cp36m‑win_amd64.whl
3535
```
3636

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

4040
```bash
4141
brew install pyenv
42+
pyenv install 3.6.5
4243
pyenv local 3.6.5
4344
~/.pyenv/shims/pip3 install --upgrade pip
4445
~/.pyenv/shims/pip3 install appJar lifxlan colour configobj numpy mss scipy pillow

lights.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def abs_resource_path(relative_path):
5858

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

6464

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

0 commit comments

Comments
 (0)