Configure the reading of local SQLite Geometry Database file
This process consists of three steps
1. It is necessary to create ./Geometry directory
2. Place in this directory a symlink to the geometryFilePath with the name 'geometryTag.db'
3. Prepend '.' to the CALIBPATH environment
Definition at line 126 of file CommonGeoDB.py.
127 """ Configure the reading of local SQLite Geometry Database file
129 This process consists of three steps
130 1. It is necessary to create ./Geometry directory
131 2. Place in this directory a symlink to the geometryFilePath with the name 'geometryTag.db'
132 3. Prepend '.' to the CALIBPATH environment
136 if not os.path.exists(
"Geometry"):
139 except FileExistsError:
141 linkName = geometryTag +
".db"
142 linkPath = os.path.join(
"Geometry",linkName)
143 if not os.path.exists(linkPath):
144 os.symlink(geometryFilePath,linkPath)
145 if 'CALIBPATH' in os.environ.keys():
146 os.environ[
'CALIBPATH']=
'.:'+ os.environ[
'CALIBPATH']
148 os.environ[
'CALIBPATH']=
'.'