e2ff1d7882
the sea. PR: ports/110460 Submitted by: Dmitry Marakasov <amdmi3 at amdmi3.ru>
16 lines
295 B
Python
16 lines
295 B
Python
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import os.path
|
|
|
|
#Program path
|
|
package_dir = os.path.join("%%PROGRAM_DIR%%")
|
|
|
|
#Change current work directory
|
|
os.chdir(package_dir)
|
|
|
|
#Add package_dir to python path
|
|
sys.path.append(package_dir)
|
|
|
|
#Launch the program!
|
|
execfile(os.path.join(package_dir, "main.py"))
|