mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-08-07 07:56:30 +02:00
Now ensures project scad dir searched first.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
# If not, see <https://www.gnu.org/licenses/>.
|
# If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
import os
|
import os
|
||||||
|
from set_config import source_dir
|
||||||
|
|
||||||
def mtime(file):
|
def mtime(file):
|
||||||
if os.path.isfile(file):
|
if os.path.isfile(file):
|
||||||
@@ -61,4 +62,5 @@ def source_dirs(bom_dir):
|
|||||||
else:
|
else:
|
||||||
if dir.endswith('/printed'):
|
if dir.endswith('/printed'):
|
||||||
lib_dirs.add(dir)
|
lib_dirs.add(dir)
|
||||||
return sorted(dirs) + sorted(lib_dirs)
|
dirs.remove(source_dir)
|
||||||
|
return [source_dir] + sorted(dirs) + sorted(lib_dirs)
|
||||||
|
Reference in New Issue
Block a user