Mercurial > libervia-backend
diff frontends/src/wix/constants.py @ 227:533507bb4e32
distutils wix installation
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 05 Jan 2011 18:46:26 +0100 |
parents | 86d249b6d9b7 |
children | 0806a65a5fa9 |
line wrap: on
line diff
--- a/frontends/src/wix/constants.py Wed Jan 05 02:39:35 2011 +0100 +++ b/frontends/src/wix/constants.py Wed Jan 05 18:46:26 2011 +0100 @@ -1,9 +1,12 @@ -import sys +import sys,os.path import __builtin__ +import sat_frontends.wix + +wix_root = os.path.dirname(sat_frontends.wix.__file__) __builtin__.__dict__['APP_NAME'] = "Wix" -__builtin__.__dict__['LICENCE_PATH'] = "../../COPYING" -__builtin__.__dict__['IMAGE_DIR'] = sys.path[0]+'/images' +__builtin__.__dict__['LICENCE_PATH'] = os.path.join(wix_root,"COPYING") +__builtin__.__dict__['IMAGE_DIR'] = os.path.join(wix_root,'images') __builtin__.__dict__['msgOFFLINE'] = _("offline") __builtin__.__dict__['msgONLINE'] = _("online")