mirror of
https://github.com/open-telemetry/opentelemetry-python-contrib.git
synced 2025-08-01 09:13:23 +08:00
Move DD code into its own directory (#6)
This commit is contained in:
9
reference/tests/ddtrace_run.py
Normal file
9
reference/tests/ddtrace_run.py
Normal file
@ -0,0 +1,9 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# DEV: We must append to sys path before importing ddtrace_run
|
||||
sys.path.append('.')
|
||||
from ddtrace.commands import ddtrace_run # noqa
|
||||
|
||||
os.environ['PYTHONPATH'] = '{}:{}'.format(os.getenv('PYTHONPATH'), os.path.abspath('.'))
|
||||
ddtrace_run.main()
|
Reference in New Issue
Block a user