From ab2629c5a40dc91389bce94f00486d952125eaa5 Mon Sep 17 00:00:00 2001 From: Jeremy Mack Wright Date: Thu, 3 May 2018 16:30:57 -0400 Subject: [PATCH] Using dumb cloning for cqparts thrid-party library. --- Init.py | 8 +++++++- ThirdParty/cqparts | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 ThirdParty/cqparts diff --git a/Init.py b/Init.py index 120b0d7..23d5de1 100644 --- a/Init.py +++ b/Init.py @@ -17,6 +17,12 @@ sys.path.insert(0, libs_dir_path) cq_lib_path = os.path.join(libs_dir_path, 'cadquery') sys.path.insert(1, cq_lib_path) +# Add our third party libraries so that they can be used in scripts +third_party_path = os.path.join(module_base_path, 'ThirdParty') +cqparts_base_path = os.path.join(third_party_path, 'cqparts') +cqparts_path = os.path.join(cqparts_base_path, 'src') +sys.path.append(cqparts_path) + # Make sure we get the right libs under the FreeCAD installation fc_base_path = os.path.dirname(os.path.dirname(module_base_path)) fc_lib_path = os.path.join(fc_base_path, 'lib') @@ -30,4 +36,4 @@ if os.path.exists(fc_bin_path): sys.path.insert(1, fc_bin_path) # Need to set this for PyQode -os.environ['QT_API'] = 'pyside' \ No newline at end of file +os.environ['QT_API'] = 'pyside' diff --git a/ThirdParty/cqparts b/ThirdParty/cqparts new file mode 160000 index 0000000..d3b2893 --- /dev/null +++ b/ThirdParty/cqparts @@ -0,0 +1 @@ +Subproject commit d3b2893789c6c478aa08141a00c1ba63e6b5cd81