chiark / gitweb /
Add uppercase STL and HEX to file dialog filters for linux/MacOS
[cura.git] / Cura / fabmetheus_utilities / __init__.py
1 """
2 This page is in the table of contents.
3 This is required to workaround the python import bug where relative imports don't work if the module is imported as a main module.
4 """
5 import os
6 import sys
7
8 numberOfLevelsDeepInPackageHierarchy = 1
9 packageFilePath = os.path.abspath(__file__)
10 for level in range( numberOfLevelsDeepInPackageHierarchy + 1 ):
11         packageFilePath = os.path.dirname( packageFilePath )
12 if packageFilePath not in sys.path:
13         sys.path.insert( 0, packageFilePath )