X-Git-Url: https://v.licheni.net/stack/code/dboxswitch.git/blobdiff_plain/d06f73c1045d0a4b526f4662869bb2cd121eabde..3f40cabdeef57bd3901ecebe0851441b9c795f12:/settings.py diff --git a/settings.py b/settings.py index b9fb468..43d7bb7 100644 --- a/settings.py +++ b/settings.py @@ -32,12 +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))) + + print(os.path.join(__location__,"icon.png")) 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") global conf appconf = Settings()