Commits

Jed Brown committed 76ef003 Merge

Merge branch 'jed/datafiles-inherit'

* jed/datafiles-inherit:
config: only define DATAFILESPATH for non-null value

Comments (0)

Files changed (1)

config/PETSc/utilities/dataFilesPath.py

       self.datafilespath = os.path.join('/home','petsc','datafiles')
     elif os.path.isdir(os.path.join(self.petscdir.dir, '..', 'datafiles')) &  os.path.isdir(os.path.join(self.petscdir.dir, '..', 'datafiles', 'matrices')):
       self.datafilespath = os.path.join(self.petscdir.dir, '..', 'datafiles')
-    self.addMakeMacro('DATAFILESPATH',self.datafilespath)
+    if self.datafilespath is not None:
+      self.addMakeMacro('DATAFILESPATH',self.datafilespath)
     return
 
   def configure(self):