backgroundremover: substitute --replace with --replace-fail
This commit is contained in:
parent
9f28e30252
commit
f4c63df33c
@ -29,7 +29,7 @@ let
|
|||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace backgroundremover/bg.py backgroundremover/u2net/detect.py \
|
substituteInPlace backgroundremover/bg.py backgroundremover/u2net/detect.py \
|
||||||
--replace 'os.path.expanduser(os.path.join("~", ".u2net", model_name + ".pth"))' "os.path.join(\"$models\", model_name + \".pth\")"
|
--replace-fail 'os.path.expanduser(os.path.join("~", ".u2net", model_name + ".pth"))' "os.path.join(\"$models\", model_name + \".pth\")"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ p.setuptools p.wheel ];
|
nativeBuildInputs = [ p.setuptools p.wheel ];
|
||||||
|
Loading…
Reference in New Issue
Block a user