Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A onversational CNC programming library written in Python
Python
Tree: acfab3ed8a

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
images
.gitmodules
LICENSE
README
cylinder.py
gear.py
gizmoLed.py
helicalcircle.py
helloWorld.py
holecircle.py
index.py
index.xml
involute.py
pieSegmentClockwise.py
pillow_block.py
pocketRect2points.py
rectangle.py
roundrectangle.py
svgEngraver.py
tap_drill.py
tictactoe.py
toolTable.py
turn_on.py
vcutter.py

README

HUGOMATIC README


Hugomatic is a library for GCODE generation in Python.


RUNNING ON LOCAL MACHINE
========================

Windows:
You need to install Python 2.5 or later

Linux:

Mac:
?




WEB SERVER INSTRUCTION
======================

To run the application as a web server on your local machine, execute the python script httpd.py in the hugomatic/web directory.

python httpd.py

Because it is a cgi application, every Python file that corresponds to a web page must be executable. Setting the executable flag for every Python file is a good strategy. 

Here's a typical error:


localhost - - [23/Jan/2009 17:46:43] "GET /index.py HTTP/1.1" 200 -
Traceback (most recent call last):
  File "/usr/lib/python2.5/CGIHTTPServer.py", line 251, in run_cgi
    os.execve(scriptfile, args, os.environ)
OSError: [Errno 13] Permission denied


As an example, here's the Unix command to set the index.py file to executable:

chmod +x index.py

Finally, the Python executable path must be set correctly. Every script has the following comment:

#!/usr/bin/python

You may have to create a link to your Python executable in your /usr/bin directory or change the comment to something like:

#!env python

Something went wrong with that request. Please try again.