diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-08 20:29:00 +0800 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2019-05-08 20:29:00 +0800 |
commit | 8b6ffeec13306701c788bc0442bc77cd05651974 (patch) | |
tree | eb9a9c734ae5e8fd014512ae43ced8065a688ade /psutil/_psaix.py | |
parent | 43a22b81832f7ba546636c26006190bc2bb8dfc2 (diff) | |
download | psutil-8b6ffeec13306701c788bc0442bc77cd05651974.tar.gz |
update CREDITS + small style fix
Diffstat (limited to 'psutil/_psaix.py')
-rw-r--r-- | psutil/_psaix.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psutil/_psaix.py b/psutil/_psaix.py index 5810e3b4..b24325d1 100644 --- a/psutil/_psaix.py +++ b/psutil/_psaix.py @@ -396,8 +396,8 @@ class Process(object): # if cwd has changed, we're out of luck - this may be wrong! exe = os.path.abspath(os.path.join(self.cwd(), exe)) if (os.path.isabs(exe) and - os.path.isfile(exe) and - os.access(exe, os.X_OK)): + os.path.isfile(exe) and + os.access(exe, os.X_OK)): return exe # not found, move to search in PATH using basename only exe = os.path.basename(exe) @@ -405,7 +405,7 @@ class Process(object): for path in os.environ["PATH"].split(":"): possible_exe = os.path.abspath(os.path.join(path, exe)) if (os.path.isfile(possible_exe) and - os.access(possible_exe, os.X_OK)): + os.access(possible_exe, os.X_OK)): return possible_exe return '' |