Shopify / Shopify/shopify_python_api
Console "HOME" key error on Windows (with FIX)
Open
Nobody has claimed this yet.
feature request
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 388
- Avg merge
- 5h 39m
- Merged PRs (30d)
- 1
Description
When trying to use the console from windows I get a key error as described in this post on StackOverflow.
FIX:
Replace os.environ["HOME"] with os.path.expanduser('~') on line 90 in scripts/shopify_api.py
Proposed fix needs to be tested on Linux and Mac. Works on Windows 7 x64.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at line 90 of scripts/shopify_api.py and compare the reported Windows failure with the proposed HOME lookup. Verify the behavior on Windows, Linux, and macOS; the issue is done when console use no longer raises the environment-key error on all three platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100