Describe the bug
When importing ost on Windows, not all common paths are searched. When SNAP has been installed for the current user only, its located in %LocalAppData%, not in %ProgramFiles% which is the only place being searched currently.
This affects all non-administrator users, who are quite common among government and corporat
To Reproduce
Install SNAP for the current user only.
Run a python program which imports ost:
# program.py
import ost
$ python3 program.py
The input() prompt appears, even though snap is installed in a default location
Expected behavior
Common search paths should be searched when resolving the gpt.exe path.
Fallback resolution using path resolvers such as shutil.which (which are already available for unix installs) should be available for non-standard install paths.
Screenshots
N/A
Desktop (please complete the following information):
OS: Windows 10 (Non-administrator user)
Additional context
There currently exists a workaround for this, which abuses the input() fallback:
Describe the bug When importing
ost
on Windows, not all common paths are searched. When SNAP has been installed for the current user only, its located in%LocalAppData%
, not in%ProgramFiles%
which is the only place being searched currently.This affects all non-administrator users, who are quite common among government and corporat
To Reproduce
$ python3 program.py
input()
prompt appears, even though snap is installed in a default locationExpected behavior
gpt.exe
path.shutil.which
(which are already available for unix installs) should be available for non-standard install paths.Screenshots N/A
Desktop (please complete the following information):
Additional context There currently exists a workaround for this, which abuses the
input()
fallback: