Lines Matching refs:dir
14 return ' PETSC_DIR: '+str(self.dir)+'\n'
25 self.dir = os.path.normpath(self.framework.argDB['PETSC_DIR'])
29 self.dir = os.path.normpath(os.environ['PETSC_DIR'])
33 self.dir = os.getcwd()
37 if self.dir == 'pwd':
39 elif self.dir.find(' ') > -1:
40 …s is not allowed. Change the directory with PETSc to not have spaces in it'.format(msg1, self.dir))
41 elif not os.path.isabs(self.dir):
42 …se absolute path - i.e: {2} PETSC_DIR={3}'.format(msg1, self.dir, msg2, os.path.abspath(self.dir)))
43 elif not os.path.isdir(self.dir):
44 raise RuntimeError('{0} PETSC_DIR={1} is not a directory'.format(msg1, 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')
58 … raise RuntimeError('Invalid PETSc directory '+str(self.dir)+'. Could not locate '+versionHeader)
71 dirs.append(os.path.join(self.dir, 'lib','petsc','bin', 'win32fe'))