From 92a444563124e3af08cf74bb404662f8e13bed25 Mon Sep 17 00:00:00 2001 From: vincent Date: Wed, 31 Jan 2018 21:56:19 +0100 Subject: [PATCH] correction bug parent directory --- chaineTV.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaineTV.py b/chaineTV.py index 788aa61..f0092d8 100644 --- a/chaineTV.py +++ b/chaineTV.py @@ -8,7 +8,7 @@ import os class Interface: def __init__(self): - self.datafilepath=os.path.dirname(sys.argv[0])+"/chaine.json" + self.datafilepath=os.path.dirname(os.path.realpath(__file__))+"/chaine.json" self.data = load_jsonfile(self.datafilepath) self.fenetre = Tk() self.fenetre.title("recherche de chaine")