mirror of
https://github.com/nophead/NopSCADlib.git
synced 2025-07-31 12:40:10 +02:00
Fixed platters and panels not working in the GUI, a regression.
set_config() now puts $cwd in target.scad. use_stl() and use_dxf() included again instead of used.
This commit is contained in:
@@ -69,7 +69,11 @@ def set_config(target, usage = None):
|
||||
sys.exit(1)
|
||||
|
||||
fname = source_dir + "/target.scad"
|
||||
text = ['include <config_%s.scad>\n' % target, '$target = "%s";\n' % target];
|
||||
text = ['include <config_%s.scad>\n' % target,
|
||||
'$target = "%s";\n' % target,
|
||||
'$cwd="%s";\n' % os.getcwd().replace('\\', '/')
|
||||
]
|
||||
|
||||
lines = [""]
|
||||
try:
|
||||
with open(fname,"rt") as f:
|
||||
|
Reference in New Issue
Block a user