Trying to fix CQ module import on Mac.
This commit is contained in:
parent
e6b9715b9e
commit
df70a95868
|
@ -41,6 +41,7 @@ class CadQueryWorkbench (Workbench):
|
||||||
libs_dir_path = os.path.join(module_base_path, 'Libs')
|
libs_dir_path = os.path.join(module_base_path, 'Libs')
|
||||||
libs_path = os.path.join(libs_dir_path, 'libs.zip')
|
libs_path = os.path.join(libs_dir_path, 'libs.zip')
|
||||||
sys.path.insert(0, os.path.join(libs_dir_path, 'cadquery'))
|
sys.path.insert(0, os.path.join(libs_dir_path, 'cadquery'))
|
||||||
|
sys.path.insert(0, libs_dir_path)
|
||||||
sys.path.insert(0, libs_path)
|
sys.path.insert(0, libs_path)
|
||||||
|
|
||||||
import cadquery
|
import cadquery
|
||||||
|
@ -109,7 +110,7 @@ class CadQueryWorkbench (Workbench):
|
||||||
, args=['-s', libs_path, fc_lib_path, os.path.join(libs_dir_path, 'cadquery')])
|
, args=['-s', libs_path, fc_lib_path, os.path.join(libs_dir_path, 'cadquery')])
|
||||||
else:
|
else:
|
||||||
codePane = PyCodeEdit(server_script=server_path, interpreter=interpreter
|
codePane = PyCodeEdit(server_script=server_path, interpreter=interpreter
|
||||||
, args=['-s', libs_path, os.path.join(libs_dir_path, 'cadquery')])
|
, args=['-s', libs_path, libs_dir_path, os.path.join(libs_dir_path, 'cadquery')])
|
||||||
|
|
||||||
codePane.setObjectName("cqCodePane")
|
codePane.setObjectName("cqCodePane")
|
||||||
|
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user