Skip to content

Commit

Permalink
[2.4] Support client custom code in simulator (#2447)
Browse files Browse the repository at this point in the history
* Support client custom code in simulator

* Fix client custom code
  • Loading branch information
YuanTingHsieh authored Apr 1, 2024
1 parent 84a1a98 commit 12ae6a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nvflare/private/fed/app/simulator/simulator_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ def main(args):
log_file = os.path.join(args.workspace, WorkspaceConstants.LOG_FILE_NAME)
add_logfile_handler(log_file)

app_custom_folder = os.path.join(args.workspace, "custom")
sys.path.append(app_custom_folder)
os.chdir(args.workspace)
fobs_initialize()
AuthorizationService.initialize(EmptyAuthorizer())
Expand Down

0 comments on commit 12ae6a8

Please sign in to comment.