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")