From: Gerald NICOLAS Date: Thu, 5 Oct 2017 15:19:31 +0000 (+0200) Subject: passage en python 3 X-Git-Tag: V9_0_0~2^2~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b24506c2886dfc8b8f10092bbae6f3d52970e440;p=modules%2Fhomard.git passage en python 3 --- diff --git a/doc/files/tutorial_util.py b/doc/files/tutorial_util.py index 5960f12b..8a22233f 100755 --- a/doc/files/tutorial_util.py +++ b/doc/files/tutorial_util.py @@ -19,9 +19,9 @@ # """ Python script for HOMARD -Copyright EDF-R&D 2014 +Copyright EDF-R&D 2014, 2017 """ -__revision__ = "V1.3" +__revision__ = "V2.01" import os import sys @@ -110,7 +110,7 @@ num_tuto: number of the tutorial Copyright EDF-R&D 2014 """ # - if os.environ.has_key("LOGNAME") : + if "LOGNAME" in os.environ : user = os.environ ["LOGNAME"] else : user = "anonymous"