correction bug parent directory

This commit is contained in:
vincent 2018-01-31 21:56:19 +01:00
parent 321a1c2122
commit 92a4445631

View File

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