File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -190,12 +190,21 @@ def save_bioimageio_package_as_folder(
190190 write_yaml (src , output_path / name )
191191 elif (
192192 isinstance (src .original_root , Path )
193- and src .original_root / src .original_file_name == output_path / name
193+ and src .original_root / src .original_file_name
194+ == (output_path / name ).resolve ()
194195 ):
195196 logger .debug (
196197 f"Not copying { src .original_root / src .original_file_name } to itself."
197198 )
198199 else :
200+ if isinstance (src .original_root , Path ):
201+ logger .debug (
202+ f"Copying from path { src .original_root / src .original_file_name } to { output_path / name } ."
203+ )
204+ else :
205+ logger .debug (
206+ f"Copying { src .original_root } /{ src .original_file_name } to { output_path / name } ."
207+ )
199208 with (output_path / name ).open ("wb" ) as dest :
200209 _ = shutil .copyfileobj (src , dest )
201210
You can’t perform that action at this time.
0 commit comments