Skip to content

Commit

Permalink
insert PYSTAND_HOME to sys.path
Browse files Browse the repository at this point in the history
  • Loading branch information
skywind3000 committed Feb 5, 2022
1 parent 51ccd17 commit 9cf1618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PyStand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ const char *init_script =
"PYSTAND_HOME = os.environ['PYSTAND_HOME']\n"
"PYSTAND_RUNTIME = os.environ['PYSTAND_RUNTIME']\n"
"PYSTAND_SCRIPT = os.environ['PYSTAND_SCRIPT']\n"
"sys.path.insert(0, os.path.abspath(PYSTAND_HOME))\n"
"def MessageBox(msg, info = 'Message'):\n"
" import ctypes\n"
" ctypes.windll.user32.MessageBoxW(None, str(msg), str(info), 0)\n"
Expand Down

0 comments on commit 9cf1618

Please sign in to comment.