Package fabmetheus_utilities :: Package geometry :: Package geometry_utilities :: Package evaluate_elements
[hide private]
[frames] | no frames]

Source Code for Package fabmetheus_utilities.geometry.geometry_utilities.evaluate_elements

 1  #This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module. 
 2  import os 
 3  import sys 
 4  numberOfLevelsDeepInPackageHierarchy = 4 
 5  packageFilePath = os.path.abspath(__file__) 
 6  for level in range( numberOfLevelsDeepInPackageHierarchy + 1 ): 
 7          packageFilePath = os.path.dirname( packageFilePath ) 
 8  if packageFilePath not in sys.path: 
 9          sys.path.insert( 0, packageFilePath ) 
10