diff --git a/scotests/sco_fake_gen.py b/scotests/sco_fake_gen.py index f0df52bf9..531142555 100644 --- a/scotests/sco_fake_gen.py +++ b/scotests/sco_fake_gen.py @@ -33,10 +33,10 @@ import sco_edit_ue import sco_codes_parcours import sco_saisie_notes -DEMODIR = sco_utils.SCO_SRCDIR + "/scotests/demo/" -NOMS = [x.strip() for x in open(DEMODIR + "/noms.txt").readlines()] -PRENOMS_H = [x.strip() for x in open(DEMODIR + "/prenoms-h.txt").readlines()] -PRENOMS_F = [x.strip() for x in open(DEMODIR + "/prenoms-f.txt").readlines()] +DEMO_DIR = sco_utils.SCO_SRC_DIR + "/scotests/demo/" +NOMS = [x.strip() for x in open(DEMO_DIR + "/noms.txt").readlines()] +PRENOMS_H = [x.strip() for x in open(DEMO_DIR + "/prenoms-h.txt").readlines()] +PRENOMS_F = [x.strip() for x in open(DEMO_DIR + "/prenoms-f.txt").readlines()] # nb: en python2, les chaines ci-dessus sont en utf8