Skip to content

Commit

Permalink
removed unused function _get_include_path
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-dh committed May 22, 2021
1 parent 7f65b21 commit a2e6b05
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions solid/solidpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,21 +385,6 @@ def __init__(self, name, params, include_file_path, use_not_include=False, **kwa

OpenSCADObject.__init__(self, name, params)

def _get_include_path(self, include_file_path):
# Look through sys.path for anyplace we can find a valid file ending
# in include_file_path. Return that absolute path
if os.path.isabs(include_file_path) and os.path.isfile(include_file_path):
return include_file_path
else:
for p in sys.path:
whole_path = os.path.join(p, include_file_path)
if os.path.isfile(whole_path):
return os.path.abspath(whole_path)

# No loadable SCAD file was found in sys.path. Raise an error
raise ValueError(f"Unable to find included SCAD file: {include_file_path} in sys.path")


# =========================================
# = Rendering Python code to OpenSCAD code=
# =========================================
Expand Down

0 comments on commit a2e6b05

Please sign in to comment.