1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-07-31 04:30:15 +02:00

Now ensures project scad dir searched first.

This commit is contained in:
Chris Palmer
2020-03-12 22:56:56 +00:00
parent 2210396234
commit 4914f90994

View File

@@ -17,6 +17,7 @@
# If not, see <https://www.gnu.org/licenses/>.
#
import os
from set_config import source_dir
def mtime(file):
if os.path.isfile(file):
@@ -61,4 +62,5 @@ def source_dirs(bom_dir):
else:
if dir.endswith('/printed'):
lib_dirs.add(dir)
return sorted(dirs) + sorted(lib_dirs)
dirs.remove(source_dir)
return [source_dir] + sorted(dirs) + sorted(lib_dirs)