1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-05 23:17:26 +02:00

Moved deps directories to separate stl deps from views deps.

This commit is contained in:
Chris Palmer
2021-02-09 09:18:30 +00:00
parent 055e90cbb3
commit 182f39876a
4 changed files with 14 additions and 6 deletions

View File

@@ -29,6 +29,7 @@ import time
import times
from deps import *
import json
import shutil
def bom_to_parts(bom_dir, part_type, assembly = None):
#
@@ -62,12 +63,16 @@ def make_parts(target, part_type, parts = None):
#
top_dir = set_config(target, lambda: usage(part_type))
target_dir = top_dir + part_type + 's'
deps_dir = top_dir + "deps"
deps_dir = target_dir + "/deps"
bom_dir = top_dir + "bom"
if not os.path.isdir(target_dir):
os.makedirs(target_dir)
if not os.path.isdir(deps_dir):
os.makedirs(deps_dir)
if os.path.isdir(top_dir + '/deps'): #old location
shutil.rmtree(top_dir + '/deps')
times.read_times(target_dir)
#
# Decide which files to make