Skip to content

Commit 68314f0

Browse files
committed
Get PATH using python's os module instead of getting environment
variable and manually splitting
1 parent 2a6a8da commit 68314f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

aw_qt/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _discover_modules_bundled() -> List[str]:
7878

7979
""" Find all aw- modules in PATH """
8080
def _discover_modules_system() -> List[str]:
81-
search_paths = os.environ["PATH"].split(":")
81+
search_paths = os.get_exec_path()
8282
modules = []
8383
for path in search_paths:
8484
if os.path.isdir(path):

0 commit comments

Comments
 (0)