Lines Matching refs:os

19 import os, sys
21 sys.path.insert(0, os.path.join(os.environ['PETSC_DIR'], 'config'))
22 sys.path.insert(0, os.path.join(os.environ['PETSC_DIR'], 'config', 'BuildSystem'))
29 import os
32 …argDB.saveFilename = os.path.join(os.environ['PETSC_DIR'], os.environ['PETSC_ARCH'], 'lib','petsc'…
63 …help.addArgument('RepManager', '-rootDir', nargs.ArgDir(None, os.environ['PETSC_DIR'], 'The root d…
112 os.chdir(dirname)
113 l = len(os.environ['PETSC_DIR'])
114 basedir = os.path.join(os.environ['PETSC_DIR'],os.environ['PETSC_ARCH'],'xcode-links')
124 for f in os.listdir(dirname):
125 ext = os.path.splitext(f)[1]
135 …if not os.path.islink(os.path.join(basedir,i)) and not i.startswith('.') and i.find(".BACKUP") == …
136 if i.endswith('openglops.c') and not os.path.islink(os.path.join(basedir,'openglops.m')):
137 os.symlink(os.path.join(dirname,i),os.path.join(basedir,'openglops.m'))
139 os.symlink(os.path.join(dirname,i),os.path.join(basedir,i))
158 base = os.path.basename(dirname)
174 fname = os.path.join(dirname, 'makefile')
175 if not os.path.isfile(fname):
176 …if os.path.isfile(os.path.join(dirname, 'Makefile')): print('ERROR: Change Makefile to makefile in…
263 if rootDir == os.environ['PETSC_DIR']:
264 basedir = os.path.join(self.petscdir.dir, self.arch.arch, 'xcode-links')
265 if os.path.isdir(basedir):
268 os.mkdir(basedir)
269 for root, dirs, files in os.walk(rootDir):
271 for badDir in [d for d in dirs if not self.checkDir(os.path.join(root, d))]:
283 …subprocess.call('cd '+os.path.join(os.environ['PETSC_DIR'],'systems','Apple','iOS','PETSc')+';open…
296 …output,err,ret = self.executeShellCommand('cd '+os.path.join(os.environ['PETSC_DIR'],'systems','A…
300 …liblocation = os.path.join(os.environ['PETSC_DIR'],'systems','Apple','iOS','PETSc','build','Debug-…
301 if not os.path.exists(liblocation):
304 …ret = self.executeShellCommand('cp -f '+liblocation+' '+os.path.join(os.environ['PETSC_DIR'],os.e…