Skip to content
This repository was archived by the owner on Dec 31, 2023. It is now read-only.

Commit c045de0

Browse files
authored
Merge pull request #14 from Garulf/scoop-compatibility-v2
Normalize launcher directory names and path names when matching.
2 parents 925f060 + 8e79480 commit c045de0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

flox/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333

3434
launcher_dir = None
3535
path = CURRENT_WORKING_DIR
36-
if SCOOP_FLOW_LAUNCHER_DIR_NAME in path.parts:
36+
if SCOOP_FLOW_LAUNCHER_DIR_NAME.lower() in str(path).lower():
3737
launcher_name = SCOOP_FLOW_LAUNCHER_DIR_NAME
3838
API = FLOW_API
39-
elif FLOW_LAUNCHER_DIR_NAME in path.parts:
39+
elif FLOW_LAUNCHER_DIR_NAME.lower() in str(path).lower():
4040
launcher_name = FLOW_LAUNCHER_DIR_NAME
4141
API = FLOW_API
42-
elif WOX_DIR_NAME in path.parts:
42+
elif WOX_DIR_NAME.lower() in str(path).lower():
4343
launcher_name = WOX_DIR_NAME
4444
API = WOX_API
4545
else:

flox/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.18.0
1+
0.18.1

0 commit comments

Comments
 (0)