v.licheni.net
/
stack
/
code
/
dboxswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved icons in a subdirectory
[stack/code/dboxswitch.git]
/
settings.py
diff --git
a/settings.py
b/settings.py
index
b9fb468
..
3b7fdb1
100644
(file)
--- a/
settings.py
+++ b/
settings.py
@@
-32,12
+32,20
@@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
"""
+import os, sys
class Settings():
def __init__(self):
class Settings():
def __init__(self):
+ path = __file__ if __file__ is not None else sys.argv[0]
+ __location__ = os.path.realpath(os.path.join(os.getcwd(),
+ os.path.dirname(path)))
+
self.appname = "dboxswitch"
self.appversion = "0.1"
self.appname = "dboxswitch"
self.appversion = "0.1"
- self.icon = "./icon.png"
+ self.icon = os.path.join(__location__,"icon.png")
+ self.cpicon = os.path.join(__location__,"current-profile.png")
+ self.delpicon = os.path.join(__location__,"delete.png")
+ self.addpicon = os.path.join(__location__,"add.png")
global conf
appconf = Settings()
global conf
appconf = Settings()