source: TI02-CSML/trunk/Scanner/csmllibs/__init__.py @ 837

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/Scanner/csmllibs/__init__.py@837
Revision 837, 726 bytes checked in by domlowe, 15 years ago (diff)

fixed problems with elementtree namespaces when scanning

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#empty
2
3import csmlbuilder
4import csmldataiface
5import csmltime
6import csmlfileextracts
7import csmldirectory
8import csmlmeta
9import csmlfeaturetypes
10import csmlextra
11import csmlfeaturefilemap
12import 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
22    import parser_extra
23except:
24    print 'Could not import CSML Parser module. Make sure the parser code is in ../newparser directory on the same level as ../Scanner directory.'
25    sys.exit()
26
Note: See TracBrowser for help on using the repository browser.