Skip to content

Commit 9bb5879

Browse files
yhwenchesterxgchen
andauthored
Fix for last index of module path (#2881)
* Update the generated component classes table. * Added back the MLflowReceiver. * Change to match the last module_path from source_file. --------- Co-authored-by: Chester Chen <[email protected]>
1 parent 4279625 commit 9bb5879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvflare/job_config/fed_job_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def _get_custom_file(self, custom_dir, module, source_file):
203203
if package not in FL_PACKAGES and module not in self.custom_modules:
204204
module_path = module.replace(".", os.sep)
205205
if module_path in source_file:
206-
index = source_file.index(module_path)
206+
index = source_file.rindex(module_path)
207207
dest = source_file[index:]
208208

209209
self.custom_modules.append(module)

0 commit comments

Comments
 (0)