Windows does not come with os.environ['HOME'] #144

Closed
opened 2022-07-05 01:38:58 +02:00 by blacklight · 0 comments
Owner

Created by: AVeryLostNomad

On windows, the default platypush cloned from github will fail on run, citing a missing environment key.

powershell_2019-07-28_16-35-35

My suggestion is to replace these 'os.environ['HOME']' lines in the config init.py with
os.path.expanduser('~'), which should be platform agnostic.

*Created by: AVeryLostNomad* On windows, the default platypush cloned from github will fail on run, citing a missing environment key. ![powershell_2019-07-28_16-35-35](https://user-images.githubusercontent.com/19557336/62013288-d37c8380-b155-11e9-8df2-00f27b80e007.png) My suggestion is to replace these 'os.environ['HOME']' lines in the config __init__.py with `os.path.expanduser('~')`, which should be platform agnostic.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: platypush/platypush#144
No description provided.