Skip to content

Commit

Permalink
Add check for NT
Browse files Browse the repository at this point in the history
  • Loading branch information
kusti8 committed Apr 12, 2017
1 parent e0655d7 commit 23f8325
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hue_plus/previous.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def determine_path():
sys.exit()

path = determine_path() + "/things/previous.p"
if 'site-packages' not in path: # Windows EXE install
if 'site-packages' not in path and os.name == 'nt': # Windows EXE install
path = os.getenv('APPDATA') + '/hue_plus/previous.p'
if not os.path.exists(os.getenv('APPDATA')+'/hue_plus'):
os.makedirs(os.getenv('APPDATA')+'/hue_plus')
Expand Down
Binary file modified hue_plus/things/previous.p
Binary file not shown.

0 comments on commit 23f8325

Please sign in to comment.