Commit 721e9c2c authored by Yannick DAYER's avatar Yannick DAYER
Browse files

[fix] Remove superfluous square brackets

parent 882a6dad
Pipeline #45526 failed with stages
in 17 minutes and 54 seconds
...@@ -68,7 +68,7 @@ def get_pipeline(face_cropper, transform_extra_arguments): ...@@ -68,7 +68,7 @@ def get_pipeline(face_cropper, transform_extra_arguments):
) )
# Set default temporary directory # Set default temporary directory
user_env_var = os.getenv(["USER"], None) user_env_var = os.getenv("USER", None)
if user_env_var: if user_env_var:
default_temp = os.path.join("/idiap","temp",user_env_var) default_temp = os.path.join("/idiap","temp",user_env_var)
if user_env_var and os.path.exists(default_temp): if user_env_var and os.path.exists(default_temp):
......
...@@ -42,7 +42,7 @@ def load(annotation_type, fixed_positions=None): ...@@ -42,7 +42,7 @@ def load(annotation_type, fixed_positions=None):
#### FEATURE EXTRACTOR ###### #### FEATURE EXTRACTOR ######
# Set default temporary directory # Set default temporary directory
user_env_var = os.getenv(["USER"], None) user_env_var = os.getenv("USER", None)
if user_env_var: if user_env_var:
default_temp = os.path.join("/idiap","temp",user_env_var) default_temp = os.path.join("/idiap","temp",user_env_var)
if user_env_var and os.path.exists(default_temp): if user_env_var and os.path.exists(default_temp):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment