mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix IDE path in py2exe
This commit is contained in:
parent
804c5dc6fe
commit
f99ae139ad
@ -21,7 +21,11 @@ except ImportError:
|
||||
# 2.x name
|
||||
configparser = __import__("ConfigParser")
|
||||
|
||||
if hasattr(sys,"frozen") and sys.frozen in ("windows_exe", "console_exe"):
|
||||
IDE_DIR=os.path.dirname(sys.executable)
|
||||
else:
|
||||
IDE_DIR=os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
DATA_DIR = os.path.join(os.path.expanduser("~"), "openmv") #use home dir
|
||||
SCRIPTS_DIR = os.path.join(DATA_DIR, "scripts")
|
||||
EXAMPLES_DIR = os.path.join(IDE_DIR, "examples")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user