except ImportError:
MacOS = None
-from bgenlocations import CREATOR, INCLUDEDIR
+try:
+ from bgenlocations import CREATOR, INCLUDEDIR
+except ImportError:
+ CREATOR = None
+ INCLUDEDIR = os.curdir
Error = "scantools.Error"
self.line = ""
def initpaths(self):
- self.includepath = [':', INCLUDEDIR]
+ self.includepath = [os.curdir, INCLUDEDIR]
def initpatterns(self):
self.head_pat = r"^EXTERN_API[^_]"
setattr(self, name[:-4], prog)
def initosspecifics(self):
- if MacOS:
+ if MacOS and CREATOR:
self.filetype = 'TEXT'
self.filecreator = CREATOR
else: