File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,9 @@ def handle_path(newpath):
369369 if newpath in paths :
370370 return
371371 if newpath :
372- os .environ ['PATH' ] += os .path .pathsep + newpath
372+ # Keep new paths in front of system path. Suggested by @L-N1988 in
373+ # https://github.com/wanglongqi/WriteTeX/issues/29
374+ os .environ ['PATH' ] = newpath + os .path .pathsep + os .environ ['PATH' ]
373375
374376if __name__ == '__main__' :
375377 e = WriteTex ()
Original file line number Diff line number Diff line change @@ -373,7 +373,9 @@ def handle_path(newpath):
373373 if newpath in paths :
374374 return
375375 if newpath :
376- os .environ ['PATH' ] += os .path .pathsep + newpath
376+ # Keep new paths in front of system path. Suggested by @L-N1988 in
377+ # https://github.com/wanglongqi/WriteTeX/issues/29
378+ os .environ ['PATH' ] = newpath + os .path .pathsep + os .environ ['PATH' ]
377379
378380if __name__ == '__main__' :
379381 e = WriteTex ()
You can’t perform that action at this time.
0 commit comments