diff Generic/globalVars.py @ 12:29a4044a95ff

svg to png
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Thu, 30 Dec 2010 12:28:33 +0100
parents fe9c55f86698
children 60bc5117926c
line wrap: on
line diff
--- a/Generic/globalVars.py	Wed Nov 24 22:56:02 2010 +0100
+++ b/Generic/globalVars.py	Thu Dec 30 12:28:33 2010 +0100
@@ -21,40 +21,42 @@
 
 # module for global variables
 import os
-# path: Paths where find the program files needed
+import sys
 
 version = "pyArq Presupuestos v0.0.0"
 changeset = 10
 baseversion = 0
+
+# path: Paths where find the program files needed
 path = {
     "HOME" : "",
     "APPDATA" : "",
     "DURUS-DATABASE": "/pyArq-Presupuestos/durus/",
     "BUDGET": "/pyArq-Presupuestos/budget/",
-    "ICON" : "/images/pyArq-Presupuestos.svg",
-    "CHAPTER-ICON" : "/images/chapter.svg",
-    "UNIT-ICON" : "/images/unit.svg",
-    "MATERIAL-ICON" : "/images/material.svg",
-    "MACHINERY-ICON" : "/images/machinery.svg",
-    "LABOURFORCE-ICON": "/images/labourforce.svg",
-    "MENU-ICON": "/images/menu.svg",
-    "CONNECTED-ICON": "/images/connected.svg",
-    "DISCONNECTED-ICON": "/images/disconnected.svg",
-    "CLOSE-ICON": "/images/close.svg",
-    "DESCRIPTION-ICON": "/images/description.svg",
-    "SHEET-ICON": "/images/sheet.svg",
-    "DECOMPOSITION-ICON" : "/images/decomposition.svg",
-    "MEASURE-ICON" : "/images/measure.svg",
-    "ACUMULATEDLINE-ICON" : "/images/acumulatedline.svg",
-    "PARCIALLINE-ICON" : "/images/parcialline.svg",
-    "NORMALLINE-ICON" : "/images/normalline.svg",
-    "CALCULATEDLINE-ICON" : "/images/calculatedline.svg",
-    "ARROW-ICON": "/images/arrow.svg",
-    "IMAGE-ICON": "/images/image.svg",
-    "DXF-ICON": "/images/dxf.svg",
+    "ICON" : "/images/pyArq-Presupuestos.png",
+    "CHAPTER-ICON" : "/images/chapter.png",
+    "UNIT-ICON" : "/images/unit.png",
+    "MATERIAL-ICON" : "/images/material.png",
+    "MACHINERY-ICON" : "/images/machinery.png",
+    "LABOURFORCE-ICON": "/images/labourforce.png",
+    "MENU-ICON": "/images/menu.png",
+    "CONNECTED-ICON": "/images/connected.png",
+    "DISCONNECTED-ICON": "/images/disconnected.png",
+    "CLOSE-ICON": "/images/close.png",
+    "DESCRIPTION-ICON": "/images/description.png",
+    "SHEET-ICON": "/images/sheet.png",
+    "DECOMPOSITION-ICON" : "/images/decomposition.png",
+    "MEASURE-ICON" : "/images/measure.png",
+    "ACUMULATEDLINE-ICON" : "/images/acumulatedline.png",
+    "PARCIALLINE-ICON" : "/images/parcialline.png",
+    "NORMALLINE-ICON" : "/images/normalline.png",
+    "CALCULATEDLINE-ICON" : "/images/calculatedline.png",
+    "ARROW-ICON": "/images/arrow.png",
+    "IMAGE-ICON": "/images/image.png",
+    "DXF-ICON": "/images/dxf.png",
     "THROBBER-ICON": "/images/throbber.png",
     "THROBBER-GIF": "/images/throbber.gif",
-    "BUDGET-ICON": "/images/budget.svg",
+    "BUDGET-ICON": "/images/budget.png",
     "PYARQ-ICON": "/images/pyArq.png",
     }
 
@@ -71,6 +73,7 @@
     "SUBTOTAL": "#FAC8C8",
     "SUBTOTAL-PARCIAL": "#ADD8E6",
     }
+
 desktop = {
     "autodetect" : True,
     "desktop" : "",
@@ -82,8 +85,10 @@
 
 def getAppPath(key):
     return path["APPDATA"] + path[key]
+
 def getHomePath(key):
     return path["HOME"] + path[key]
+
 if os.name == 'posix':
     path["HOME"] = os.environ.get('HOME')
 elif sys.platform == 'win32':