Skip to content

Commit

Permalink
fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Coull committed Feb 18, 2025
1 parent 5c33e67 commit 5d6df81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/braket/jobs/hybrid_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ def _replace_inner_function_source_path(
"""
new_co_consts = []
for const in code_object.co_consts:
new_const = const
if inspect.iscode(const):
new_path = path_mapping[const.co_filename]
new_const = const.replace(co_filename=new_path)
Expand Down

0 comments on commit 5d6df81

Please sign in to comment.