Author: asterix Date: 2008-02-17 17:01:44 +0100 (Sun, 17 Feb 2008) New Revision: 9332
Modified: trunk/src/common/helpers.py Log: [Merwok] use os.pathsep to know the PATH environment separator
Modified: trunk/src/common/helpers.py =================================================================== --- trunk/src/common/helpers.py 2008-02-15 22:55:21 UTC (rev 9331) +++ trunk/src/common/helpers.py 2008-02-17 16:01:44 UTC (rev 9332) @@ -382,7 +382,7 @@ # on failures False is returned is_in_dir = False found_in_which_dir = None - path = os.getenv('PATH').split(':') + path = os.getenv('PATH').split(os.pathsep) for path_to_directory in path: try: contents = os.listdir(path_to_directory)