Commit 88e6346d authored by sumpfralle's avatar sumpfralle

added optional support for Psyco


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@547 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent b198f031
......@@ -8,6 +8,7 @@ Version 0.3.0 - UNRELEASED
* added ability to create support grids with different x/y grid distance
* added x/y offsets to support grid options
* added 3D view movement and rotation with a keyboard in addition to the mouse
* added optional support for the Psyco just-in-time compiler
* switched default tool size from radius to diameter
* fixed performance issue when using a support grid
* fixed empty toolpath after transforming the model
......
......@@ -155,6 +155,9 @@ if __name__ == "__main__":
help="specify if the mill tool (including its radius) should " \
+ "move completely 'inside', 'along' or 'outside' the " \
+ "defined processing boundary.")
group_general.add_option("", "--disable-psyco", dest="disable_psyco",
default=False, action="store_true", help="disable the Psyco " \
+ "just-in-time-compiler even when it is available")
group_export.add_option("", "--export-gcode", dest="export_gcode",
default=None, action="store", type="string",
help="export the generated toolpaths to a file")
......@@ -249,6 +252,17 @@ if __name__ == "__main__":
else:
inputfile = None
if not opts.disable_psyco:
try:
import psyco
psyco.full()
log.info("Psyco enabled")
except ImportError:
log.info("Psyco is not available (performance will probably " \
+ "suffer slightly)")
else:
log.info("Psyco was disabled via the commandline")
if not opts.export_gcode and not opts.export_task_config:
show_gui(inputfile, opts.config_file)
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment