Commit 9e09a2cb authored by sumpfralle's avatar sumpfralle

added optional support for setproctitle (changes the name of the process to "pycam")


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@726 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 43896244
......@@ -27,6 +27,7 @@ Notes:
import OpenGL
import ode # this is optional
Unix:
-----
......@@ -35,10 +36,12 @@ Install the following packages with your package manager:
python-gtk2
python-opengl
python-gtkglext1
python-pyode (optional)
python-pyode (optional)
python-setproctitle (optional)
python-psyco (optional)
On a debian or ubuntu system you would just type the following in a root console:
apt-get install python-gtkglext1 python-pyode python-opengl python-gtk2
apt-get install python-gtkglext1 python-opengl python-gtk2 python-pyode python-setproctitle python-psyco
Please note that you need to enable the "universe" repository in Ubuntu.
BEWARE: Debian "Lenny" and Ubuntu "Jaunty" (maybe also Dapper/Hardy/Intrepid)
......@@ -51,9 +54,6 @@ package repository list and run the following:
Afterwards you can remove the new package repository again.
Hint: installing 'python-psyco' will probably speed up processing speed.
MacOS
-----
......
......@@ -11,13 +11,14 @@ Package: pycam
Architecture: all
Depends: python-gtk2, python-opengl (>>3.0.0~b6-3), python-gtkglext1,
${misc:Depends}, ${python:Depends}
Recommends: python-pyode (>>1.2.0-3), python-psyco
Recommends: python-pyode (>>1.2.0-3), python-psyco, python-setproctitle
Description: CAM program & library written in Python
This is a set of Python modules for toolpath generation for 3-Axis
CNC machining, and a GUI program that uses them.
.
Features:
* read and write STL model files
* limited support for 2D models (SVG or DXF)
* generate and export toolpaths (gcode) for various strategies and
drill definitions
* manage processing templates (e.g. rough, semi-finish and finish
......
......@@ -133,6 +133,13 @@ def get_output_handler(destination):
return (handler, closer)
def execute(opts, args):
# try to change the process name
try:
import setproctitle
setproctitle.setproctitle("pycam")
except ImportError:
pass
if len(args) > 0:
inputfile = os.path.expanduser(args[0])
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