Skip to content

Commit

Permalink
Update agent.instrumentation.python.deep.py
Browse files Browse the repository at this point in the history
  • Loading branch information
plengauer authored Jan 8, 2025
1 parent 29c415c commit 1114f5a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def observed_os_execve(original_os_execve, file, args, env):

def observed_subprocess_Popen___init__(original_subprocess_Popen___init__, self, *args, **kwargs):
kwargs['env'] = inject_env(kwargs.get('env', None))
return original_subprocess_Popen___init__(self, [ inject_file(args[0]) ] + inject_arguments(args[0], args[1:]), **kwargs);
return original_subprocess_Popen___init__(self, *([ inject_file(args[0]) ] + inject_arguments(args[0], args[1:])), **kwargs);

def instrument(observed_function, original_function):
return functools.partial(observed_function, original_function)
Expand Down

0 comments on commit 1114f5a

Please sign in to comment.