Commit 2ab524a1 authored by sumpfralle's avatar sumpfralle

handle symlinks to startup script properly (before: sys.path was not set...

handle symlinks to startup script properly (before: sys.path was not set correctly - thus import failed)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@911 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent f77def92
......@@ -25,7 +25,8 @@ along with PyCAM. If not, see <http://www.gnu.org/licenses/>.
# extend the PYTHONPATH to include the "src" directory
import sys
import os
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src"))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)),
"src"))
# register the glut32.dll manually for the pyinstaller standalone executable
if hasattr(sys, "frozen") and sys.frozen and "_MEIPASS2" in os.environ:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment