Skip to content

Commit a2e6b05

Browse files
committed
removed unused function _get_include_path
1 parent 7f65b21 commit a2e6b05

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

solid/solidpython.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -385,21 +385,6 @@ def __init__(self, name, params, include_file_path, use_not_include=False, **kwa
385385

386386
OpenSCADObject.__init__(self, name, params)
387387

388-
def _get_include_path(self, include_file_path):
389-
# Look through sys.path for anyplace we can find a valid file ending
390-
# in include_file_path. Return that absolute path
391-
if os.path.isabs(include_file_path) and os.path.isfile(include_file_path):
392-
return include_file_path
393-
else:
394-
for p in sys.path:
395-
whole_path = os.path.join(p, include_file_path)
396-
if os.path.isfile(whole_path):
397-
return os.path.abspath(whole_path)
398-
399-
# No loadable SCAD file was found in sys.path. Raise an error
400-
raise ValueError(f"Unable to find included SCAD file: {include_file_path} in sys.path")
401-
402-
403388
# =========================================
404389
# = Rendering Python code to OpenSCAD code=
405390
# =========================================

0 commit comments

Comments
 (0)