@@ -3985,15 +3985,18 @@ def find_artifact(self, i):
39853985 # [] if default_path_env_key == '' else \
39863986 # os.environ.get(default_path_env_key,'').split(os_info['env_separator'])
39873987
3988-
39893988 # Check if a prioritized folder is provided
3990- # Search order: MLC_TMP_PATH -> priority folder (MLC_TMP_FOLDER) -> default_path_list
3989+ # Search order: MLC_TMP_PATH -> priority folder (MLC_TMP_FOLDER) ->
3990+ # default_path_list
39913991 priority_folder = env .get ('MLC_TMP_FOLDER' , '' ).strip ()
39923992 priority_folder_paths = []
3993-
3993+
39943994 if priority_folder and os .path .isdir (priority_folder ):
3995- logger .info (self .recursion_spaces + ' # Prioritizing search in folder: {}' .format (priority_folder ))
3996- # Add the folder and its subdirectories to priority paths (max depth to avoid NFS issues)
3995+ logger .info (
3996+ self .recursion_spaces +
3997+ ' # Prioritizing search in folder: {}' .format (priority_folder ))
3998+ # Add the folder and its subdirectories to priority paths (max
3999+ # depth to avoid NFS issues)
39974000 priority_folder_paths .append (priority_folder )
39984001 max_depth = int (env .get ('MLC_TMP_FOLDER_MAX_DEPTH' , '4' ))
39994002 for root , dirs , files_in_dir in os .walk (priority_folder ):
@@ -4011,7 +4014,8 @@ def find_artifact(self, i):
40114014 logger .info (
40124015 self .recursion_spaces +
40134016 ' # Requested paths: {}' .format (path ))
4014- path_list_tmp = path .split (os_info ['env_separator' ]) + priority_folder_paths
4017+ path_list_tmp = path .split (
4018+ os_info ['env_separator' ]) + priority_folder_paths
40154019
40164020 # Check soft links
40174021 path_list_tmp2 = []
0 commit comments