Skip to content

Commit

Permalink
Get PATH using python's os module instead of getting environment
Browse files Browse the repository at this point in the history
variable and manually splitting
  • Loading branch information
xylix committed Apr 25, 2020
1 parent 2a6a8da commit 68314f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aw_qt/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _discover_modules_bundled() -> List[str]:

""" Find all aw- modules in PATH """
def _discover_modules_system() -> List[str]:
search_paths = os.environ["PATH"].split(":")
search_paths = os.get_exec_path()
modules = []
for path in search_paths:
if os.path.isdir(path):
Expand Down

0 comments on commit 68314f0

Please sign in to comment.