Skip to content

Commit

Permalink
extra path sanitation
Browse files Browse the repository at this point in the history
  • Loading branch information
aetherspritee committed May 15, 2024
1 parent 0baef4a commit fb70a6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def merge_emacs_exec_path():
if not is_merge_emacs_exec_path:
paths = os.environ["PATH"].split(":")
[emacs_paths, ] = get_emacs_vars(["exec-path"])
new_paths = list(dict.fromkeys(paths + emacs_paths))
all_paths = [i for i in paths + emacs_paths if not isinstance(i,list)]
new_paths = list(dict.fromkeys(all_paths))

os.environ["PATH"] = ":".join(new_paths)

Expand Down

0 comments on commit fb70a6f

Please sign in to comment.