add python setuptools support

- add setup.py script,
 - switch to use images via "share:" resource name
   (this allows to work both versions of application:
     - system wide installation,
     - directly from source),
 - add .desktop file,
 - rename FlatCAM.py to flatcam and install it as an
   executable script.
This commit is contained in:
Damian Wrobel
2017-06-01 13:44:49 +02:00
parent 58f66ca866
commit cbad99e340
10 changed files with 190 additions and 95 deletions

View File

@@ -38,10 +38,10 @@ class ObjectCollection(QtCore.QAbstractListModel):
}
icon_files = {
"gerber": "share/flatcam_icon16.png",
"excellon": "share/drill16.png",
"cncjob": "share/cnc16.png",
"geometry": "share/geometry16.png"
"gerber": "share:flatcam_icon16.png",
"excellon": "share:drill16.png",
"cncjob": "share:cnc16.png",
"geometry": "share:geometry16.png"
}
def __init__(self, parent=None):