- Try to fix issue with path of WorkFeature directory
- myDialog handling - Circle and Ellipse Tab added - Cutting tab added
This commit is contained in:
parent
7044ca860f
commit
71db89fcd9
959
WorkFeature/WFGui_2015_01_25.py → WorkFeature/WFGui_2015.py
Executable file → Normal file
959
WorkFeature/WFGui_2015_01_25.py → WorkFeature/WFGui_2015.py
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
1568
WorkFeature/WFGui_2015_01_25.ui → WorkFeature/WFGui_2015.ui
Executable file → Normal file
1568
WorkFeature/WFGui_2015_01_25.ui → WorkFeature/WFGui_2015.ui
Executable file → Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,2 +1,18 @@
|
||||||
import WorkFeature
|
# -*- coding: utf-8 -*-
|
||||||
WorkFeature.WorkFeatureTab()
|
import sys
|
||||||
|
import os.path
|
||||||
|
|
||||||
|
try:
|
||||||
|
# try import
|
||||||
|
import WorkFeature
|
||||||
|
except:
|
||||||
|
# get the path of the current python script
|
||||||
|
m_current_path = os.path.realpath(__file__)
|
||||||
|
m_current_path = os.path.dirname(m_current_path)
|
||||||
|
# check if this path belongs to the PYTHONPATH variable and if not add it
|
||||||
|
if not sys.path.__contains__(str(m_current_path)):
|
||||||
|
sys.path.append(str(m_current_path))
|
||||||
|
# retry import now
|
||||||
|
import WorkFeature
|
||||||
|
|
||||||
|
WorkFeature.myDialog = WorkFeature.WorkFeatureTab()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user