Closed Krytic closed 1 year ago
Describe the bug In, for example, hoki/constants.py, L159:
hoki/constants.py
path_to_settings = data_path+'/settings.yaml'
On a Windows system, this will fail as the directory separator is \ in Windows environments.
This should be replaced with something like (from the standard library os):
os
path_to_settings = os.path.join(data_path, 'settings.yaml')
which will apply the right directory separator for the right OS.
To Reproduce n/a
Expected behavior n/a
Screenshots n/a
Desktop (please complete the following information): n/a
Additional context n/a
Just to note, this issue isn't just limited to the constants module: it's everywhere Hoki needs to load files.
constants
Describe the bug In, for example,
hoki/constants.py
, L159:On a Windows system, this will fail as the directory separator is \ in Windows environments.
This should be replaced with something like (from the standard library
os
):which will apply the right directory separator for the right OS.
To Reproduce n/a
Expected behavior n/a
Screenshots n/a
Desktop (please complete the following information): n/a
Additional context n/a