jsvn: remove unnecessary global variable
This commit is contained in:
1 parent
e4ceffc71d
commit
167c0f1317
1 file changed
+2
-3
@@ -42,10 +42,9 @@ import re
|
|||||||
import time
|
import time
|
||||||
from subprocess import *
|
from subprocess import *
|
||||||
|
|
||||||
PATH = os.environ['PATH'].split(os.pathsep)
|
|
||||||
|
|
||||||
def findInPath(cmd):
|
def findInPath(cmd):
|
||||||
for p in PATH:
|
path_entries = os.environ['PATH'].split(os.pathsep)
|
||||||
|
for p in path_entries:
|
||||||
full_path = os.path.join(p, cmd)
|
full_path = os.path.join(p, cmd)
|
||||||
if os.path.exists(full_path):
|
if os.path.exists(full_path):
|
||||||
return full_path
|
return full_path
|
||||||
|
|||||||
Reference in new issue
Block a user