From cde43621f9a94ee7d1996dd0c497fc4483eee62b Mon Sep 17 00:00:00 2001 From: viennet Date: Sat, 2 Jan 2021 00:10:29 +0100 Subject: [PATCH] use new SCO_SRC_DIR --- scotests/sco_fake_gen.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scotests/sco_fake_gen.py b/scotests/sco_fake_gen.py index f0df52bf..53114255 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