Skip to content

Commit

Permalink
Rename command
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Jan 7, 2020
1 parent 88b816e commit a81cbc4
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion opentelemetry-api/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@
],
entry_points={
"console_scripts": [
"auto_agent = opentelemetry.commands.auto_agent:run"
"opentelemetry-auto-instrument = "
"opentelemetry.auto_instrument.auto_instrument:run"
],
"opentelemetry_patcher": [
"no_op_patcher = opentelemetry.patcher.no_op_patcher:NoOpPatcher"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

from distutils.spawn import find_executable
from os import environ, execl
from os.path import dirname, join
from os.path import dirname
from sys import argv


def run() -> None:
environ["PYTHONPATH"] = join(dirname(__file__), "initialize")
environ["PYTHONPATH"] = dirname(__file__)
python3 = find_executable(argv[1])
execl(python3, python3, *argv[2:]) # type: ignore
exit(0) # pylint: disable=consider-using-sys-exit
Expand Down
Empty file.

0 comments on commit a81cbc4

Please sign in to comment.