diff options
-rw-r--r-- | pym/portage/process.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pym/portage/process.py b/pym/portage/process.py index 68c523a09..e7f09cd2d 100644 --- a/pym/portage/process.py +++ b/pym/portage/process.py @@ -386,8 +386,7 @@ def find_binary(binary): @rtype: None or string @returns: full path to binary or None if the binary could not be located. """ - - for path in os.getenv("PATH", "").split(":"): + for path in os.environ.get("PATH", "").split(":"): filename = "%s/%s" % (path, binary) if os.access(filename, os.X_OK) and os.path.isfile(filename): return filename |