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 {
name = "objectifier";
runtimeInputs = [ pythonYolo ];
text = pkgs.lib.concatStringsSep " " [
"gunicorn"
"objectifier:app"
"-k uvicorn.workers.UvicornWorker"
''"$@"''
];
text = let
script = pkgs.lib.concatStringsSep " " [
"gunicorn"
"objectifier:app"
"-k uvicorn.workers.UvicornWorker"
''"$@"''
];
in ''
PYTHONPATH="$PYTHONPATH:${objectifier-src}"
${script}
'';
}