1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-06-30 05:43:48 +02:00

Now uses the dependencies to locate modules for printed parts and assemblies.

This commit is contained in:
Chris Palmer
2020-03-12 22:47:27 +00:00
parent 2eef050f60
commit 2210396234
6 changed files with 35 additions and 16 deletions

View File

@ -38,13 +38,15 @@ def render(target, type):
#
# Make the target directory
#
target_dir = set_config(target, usage) + type + 's'
top_dir = set_config(target, usage)
target_dir = top_dir + type + 's'
bom_dir = top_dir + 'bom'
if not os.path.isdir(target_dir):
os.makedirs(target_dir)
#
# Find all the parts
#
parts = bom_to_parts(target_dir, type)
parts = bom_to_parts(bom_dir, type)
#
# Remove unused png files
#