Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rolled back the job api custom_file copy destination change #2848

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions nvflare/job_config/fed_job_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def _copy_ext_scripts(self, custom_dir, ext_scripts):
relative_script = self._get_relative_script(script)
else:
relative_script = script
dest_file = os.path.join(custom_dir, os.path.basename(relative_script))
dest_file = os.path.join(custom_dir, relative_script)
module = "".join(relative_script.rsplit(".py", 1)).replace(os.sep, ".")
self._copy_source_file(custom_dir, module, script, dest_file)

Expand Down Expand Up @@ -209,7 +209,7 @@ def _get_custom_file(self, custom_dir, module, source_file):
self.custom_modules.append(module)
os.makedirs(custom_dir, exist_ok=True)
# dest_file = os.path.join(custom_dir, module.replace(".", os.sep) + ".py")
dest_file = os.path.join(custom_dir, os.path.basename(dest))
dest_file = os.path.join(custom_dir, dest)

self._copy_source_file(custom_dir, module, source_file, dest_file)

Expand Down
Loading