From d4a8cdaeece768e98816ab30acdfb16bf8e95bac Mon Sep 17 00:00:00 2001 From: Gilles DAVID Date: Wed, 29 Mar 2017 14:28:00 +0200 Subject: [PATCH] [PY3] Remove bad decode() --- bin/setenv.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" -- 2.39.2