- 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:
Marius Stanciu
2019-09-19 03:55:47 +03:00
committed by Marius
parent 85af8a2c76
commit 1d26247fc4
5 changed files with 105 additions and 56 deletions

View File

@@ -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()