Skip to content

Commit c95bfc6

Browse files
committed
Fix install on Windows
- replaced native path separator with Unix one to prevent "Could not determine pumla installation path" error
1 parent f0471cd commit c95bfc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pumla/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def getPumlaInstallationPath():
3535
'''return the path to the python pumla CLI tool installation.'''
3636
pipath = ""
3737

38-
mypath_main = main.__code__.co_filename
38+
mypath_main = main.__code__.co_filename.replace(os.sep, '/')
3939

4040
# this is the case for a 'pip install -e .' case
4141
if ("src/pumla/main.py" in mypath_main):

0 commit comments

Comments
 (0)