Lines Matching refs:os
2 import os
25 self.dir = os.path.normpath(self.framework.argDB['PETSC_DIR'])
28 elif 'PETSC_DIR' in os.environ:
29 self.dir = os.path.normpath(os.environ['PETSC_DIR'])
33 self.dir = os.getcwd()
41 elif not os.path.isabs(self.dir):
42 …. Use absolute path - i.e: {2} PETSC_DIR={3}'.format(msg1, self.dir, msg2, os.path.abspath(self.di…
43 elif not os.path.isdir(self.dir):
45 elif os.path.realpath(self.dir) != os.path.realpath(os.getcwd()):
46 …imeError('{0} PETSC_DIR={1} MUST be the current directory {2}'.format(msg1, self.dir, os.getcwd()))
49 versionHeader = os.path.join(self.dir, 'include', 'petscversion.h')
51 if os.path.exists(versionHeader):
70 if not isinstance(dirs, list): dirs = dirs.split(os.path.pathsep)
71 dirs.append(os.path.join(self.dir, 'lib','petsc','bin', 'win32fe'))