From: Gilles DAVID Date: Wed, 29 Mar 2017 12:28:00 +0000 (+0200) Subject: [PY3] Remove bad decode() X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d4a8cdaeece768e98816ab30acdfb16bf8e95bac;p=modules%2Fyacs.git [PY3] Remove bad decode() --- diff --git a/bin/setenv.py b/bin/setenv.py index 0a716c849..f09ea5610 100755 --- a/bin/setenv.py +++ b/bin/setenv.py @@ -184,8 +184,8 @@ def set_env(args, modules_list, modules_root_dir, silent=False): "LD_LIBRARY_PATH") add_path(os.path.join(module_root_dir,"bin",salome_subdir), "PATH") - if os.path.exists(module_root_dir + "/examples") : - add_path(os.path.join(module_root_dir,"examples"), + if os.path.exists(os.path.join(module_root_dir, "examples")): + add_path(os.path.join(module_root_dir, "examples"), "PYTHONPATH") pass add_path(os.path.join(module_root_dir,"bin",salome_subdir), @@ -232,7 +232,7 @@ def set_env(args, modules_list, modules_root_dir, silent=False): if "SALOME_trace" not in os.environ: os.environ["SALOME_trace"]="local" if args['file']: - os.environ["SALOME_trace"]="file:"+args['file'][0].decode() + os.environ["SALOME_trace"] = "file:" + args['file'][0] if args['logger']: os.environ["SALOME_trace"]="with_logger"