Add embedded_python_env.py
Allows for faster debugging when using the embedded version of Python.
This commit is contained in:
parent
7388d94c50
commit
cc95bbe68b
1 changed files with 13 additions and 0 deletions
13
scripts/embedded_python_env.py
Normal file
13
scripts/embedded_python_env.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
"""WizardKit: Embedded Python helper.
|
||||
|
||||
This saves the keystrokes needed to fix the path and import wk. To use:
|
||||
python.exe -i embedded_python_env.py
|
||||
"""
|
||||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
||||
sys.path.append(os.getcwd())
|
||||
import wk # pylint: disable=wrong-import-position
|
||||
Loading…
Reference in a new issue