- FlatCAM can be run in HEADLESS mode now. This node can be selected by using the --headless=1 command line argument or by changing the line headless=False to True in config/configuration.txt file. In this mod the Sys Tray Icon menu will hold only the Run Scrip menu entry and Exit entry.
This commit is contained in:
@@ -42,10 +42,11 @@ class TclCommandPlotObjects(TclCommand):
|
||||
:param unnamed_args:
|
||||
:return:
|
||||
"""
|
||||
names = [x.strip() for x in args['names'].split(",")]
|
||||
objs = []
|
||||
for name in names:
|
||||
objs.append(self.app.collection.get_by_name(name))
|
||||
if self.app.cmd_line_headless != 1:
|
||||
names = [x.strip() for x in args['names'].split(",")]
|
||||
objs = []
|
||||
for name in names:
|
||||
objs.append(self.app.collection.get_by_name(name))
|
||||
|
||||
for obj in objs:
|
||||
obj.plot()
|
||||
for obj in objs:
|
||||
obj.plot()
|
||||
|
||||
Reference in New Issue
Block a user