don't use pkg_resources

This commit is contained in:
Mathias Panzenböck
2014-12-04 19:39:36 +01:00
parent ce8658b719
commit 355ca944bf
+7 -3
View File
@@ -6,11 +6,15 @@ if sys.argv[1:2] == ['kernel']:
from blender_ipython_wrapper import launch_kernel
launch_kernel(sys.argv[1:])
else:
from os.path import abspath, dirname, join as pathjoin
from pkg_resources import load_entry_point
from os.path import abspath, dirname, join as pathjoin
try:
from IPython.frontend.terminal.ipapp import launch_new_instance
except ImportError:
from IPython.terminal.ipapp import launch_new_instance
# use wrapper script for starting python processes
# the wrapper will defer execution to blender, if it was used to start a new kernel
sys.executable = pathjoin(dirname(abspath(__file__)), 'blender_ipython_wrapper.py')
sys.exit(load_entry_point('ipython', 'console_scripts', 'ipython3')())
launch_new_instance()