Ignore:
Timestamp:
04/04/06 16:25:57 (14 years ago)
Author:
domlowe
Message:

major rewrite of Scanner to employ Parser module. (not complete)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Scanner/csmllibs/__init__.py

    r627 r758  
    1111import csmlfeaturefilemap 
    1212import csmlfiles 
     13#import the parser module, assumes it is in a sibling directory to the one containing csmlscan.py 
     14import os 
     15import sys 
     16currentPath=os.getcwd() 
     17parentPath=os.sep.join(currentPath.split(os.sep)[:-1]) 
     18parserPath=parentPath + '/newparser' 
     19sys.path.append(parserPath) #append the parser path to sys.path 
     20try: 
     21    import Parser 
     22except: 
     23    print 'Could not import CSML Parser module. Make sure the parser code is in ../newparser directory on the same level as ../Scanner directory.' 
     24    sys.exit() 
     25 
Note: See TracChangeset for help on using the changeset viewer.