X-Git-Url: https://v.licheni.net/stack/code/dboxswitch.git/blobdiff_plain/d12658f79e38f8a8b3c42cbaa97b76cfd63f25e7..ed21cea32a80572106e5776a44e1b1edd7baa580:/settings.py diff --git a/settings.py b/settings.py index 38859e7..7e8e1f0 100644 --- a/settings.py +++ b/settings.py @@ -32,13 +32,19 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """ +import os, sys 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.icon = "./icon.png" - self.cpicon = "./current-profile.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") global conf appconf = Settings()