Skip to content

Commit

Permalink
Use “uvicorn” from .venv if available (#546)
Browse files Browse the repository at this point in the history
Addresses #545
  • Loading branch information
dluc authored Mar 9, 2025
1 parent 2f19e50 commit bdb50de
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ private static IResourceBuilder<UvicornAppResource> AddUvicornApp(this IDistribu
: Path.Join(projectDirectory, virtualEnvironmentPath));

var instrumentationExecutable = virtualEnvironment.GetExecutable("opentelemetry-instrument");
var projectExecutable = instrumentationExecutable ?? "uvicorn";
var uvicornExecutable = virtualEnvironment.GetExecutable("uvicorn") ?? "uvicorn";
var projectExecutable = instrumentationExecutable ?? uvicornExecutable;

var projectResource = new UvicornAppResource(name, projectExecutable, projectDirectory);

Expand Down

0 comments on commit bdb50de

Please sign in to comment.