Salome HOME
New access protocol rsync.
[modules/kernel.git] / src / ModuleGenerator / IDLparser.py
index d27e083d6f7bef35b8529e68be9f51513f8ae2de..0f2ab825d22cc68f57ff36b8c9cad02ea9bb32ca 100644 (file)
@@ -1,5 +1,5 @@
 #  -*- coding: iso-8859-1 -*-
-# Copyright (C) 2007-2015  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -30,6 +30,7 @@ import pdb
 
 from xml.sax.handler import *
 from omniidl import idlast, idltype, idlvisitor, idlutil, output
+from salome_utils import getUserName
 
 # parameters not found in IDL file, user's specified in optional parameters
 common_data={"AUTHOR"     : "",
@@ -827,7 +828,7 @@ def run(tree, args):
 
     #=========  Read parameters  ======================
     common_data["ICON"]       = getParamValue("icon",       "",                args)
-    common_data["AUTHOR"]     = getParamValue("author",     os.getenv("USER"), args)
+    common_data["AUTHOR"]     = getParamValue("author",     getUserName(),     args)
     common_data["VERSION"]    = getParamValue("version",    "1",               args)
     common_data["COMP_NAME"]  = getParamValue("name",       "",                args)
     common_data["COMP_UNAME"] = getParamValue("username",   "",                args)