Lines Matching refs:os
33 import os, sys
35 config_path = os.path.dirname(os.path.abspath(__file__))
36 config_root = os.path.dirname(config_path)
44 self._subdir = os.path.join(*subdirs)
51 paths = os.environ['M5_PATH'].split(':')
56 paths = map(os.path.expanduser, paths)
59 paths = filter(os.path.isdir, paths)
66 filepath = os.path.join(self._subdir, filename)
67 paths = (os.path.join(p, filepath) for p in self._sys_paths)
69 return next(p for p in paths if os.path.exists(p))