mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 02:07:51 -06:00
Force PYTHONPATH to be in the top of the sys.path list.
This fixes https://github.com/Ultimaker/Cura/issues/704
This commit is contained in:
parent
919e2f55e9
commit
df8207747a
1 changed files with 9 additions and 0 deletions
|
@ -5,6 +5,15 @@
|
|||
|
||||
import sys
|
||||
|
||||
# It looks like setuptools creates a .pth file in
|
||||
# the default /usr/lib which causes the default site-packages
|
||||
# to be inserted into sys.path before PYTHONPATH.
|
||||
# This can cause issues such as having libsip loaded from
|
||||
# the system instead of the one provided with Cura, which causes
|
||||
# incompatibility issues with libArcus
|
||||
sys.path.insert(1, os.environ.get('PYTHONPATH', ''))
|
||||
|
||||
|
||||
def exceptHook(hook_type, value, traceback):
|
||||
import cura.CrashHandler
|
||||
cura.CrashHandler.show(hook_type, value, traceback)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue