Need to set the PYTHONPATH somehow

This commit is contained in:
niten 2023-01-07 15:28:54 -08:00
parent 1271ce614a
commit b96682c40f
1 changed files with 11 additions and 6 deletions

View File

@ -24,10 +24,15 @@ let
in pkgs.writeShellApplication { in pkgs.writeShellApplication {
name = "objectifier"; name = "objectifier";
runtimeInputs = [ pythonYolo ]; runtimeInputs = [ pythonYolo ];
text = pkgs.lib.concatStringsSep " " [ text = let
"gunicorn" script = pkgs.lib.concatStringsSep " " [
"objectifier:app" "gunicorn"
"-k uvicorn.workers.UvicornWorker" "objectifier:app"
''"$@"'' "-k uvicorn.workers.UvicornWorker"
]; ''"$@"''
];
in ''
PYTHONPATH="$PYTHONPATH:${objectifier-src}"
${script}
'';
} }