Lines Matching full:path
15 def unlink(path):
17 os.unlink(path)
30 testbasedir = os.path.join(
31 os.path.realpath(tempfile.gettempdir()),
67 baseDir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..'))
68 libDir = os.path.join(baseDir, 'lib')
70 jar = os.path.join(libDir, 'ST-4.0.1.jar')
71 if not os.path.isfile(jar):
78 jar = os.path.join(libDir, 'antlr-2.7.7.jar')
79 if not os.path.isfile(jar):
86 jar = os.path.join(libDir, 'junit-4.2.jar')
87 if not os.path.isfile(jar):
94 cp.append(os.path.join(baseDir, 'runtime', 'Python', 'build'))
96 classpath = '-cp "' + ':'.join([os.path.abspath(p) for p in cp]) + '"'
106 self.moduleName = os.path.splitext(os.path.basename(sys.modules[self.__module__].__file__))[0]
150 self._baseDir = os.path.join(
153 if not os.path.isdir(self._baseDir):
187 self._baseDir = os.path.join(
190 if not os.path.isdir(self._baseDir):
194 self.grammarName = os.path.splitext(grammarName)[0]
196 grammarPath = os.path.join(os.path.dirname(os.path.abspath(__file__)), grammarName)
235 # (os.path.join(self.baseDir, a.strip()),
236 # [os.path.join(self.baseDir, b.strip())])
253 # templateDir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', '..', 'tool', 'src', 'main', 'resources', 'org', 'antlr', 'codegen', 'templates', 'Python'))
254 # templates = glob.glob(os.path.join(templateDir, '*.stg'))
263 # if not os.path.isfile(dest):
268 # if os.path.getmtime(source) > os.path.getmtime(dest):
375 grammarPath = os.path.join(self.baseDir, grammarName + '.g')
386 testDir = os.path.dirname(os.path.abspath(__file__))
387 path = os.path.join(self.baseDir, name)
389 fp = open(path, 'w')
393 return path
403 os.path.dirname(grammarPath),
404 os.path.basename(grammarPath),