mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
Readd if statement
This commit is contained in:
parent
438b3c29da
commit
be52774e21
@ -456,10 +456,16 @@ def init(args):
|
|||||||
clean(args["--clean"], imports)
|
clean(args["--clean"], imports)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if (
|
||||||
|
not args["--print"]
|
||||||
and not args["--poetry"]
|
and not args["--poetry"]
|
||||||
and os.path.exists(path)):
|
and not args["--savepath"]
|
||||||
logging.warning("Requirements.txt already exists, "
|
and not args["--force"]
|
||||||
"use --force to overwrite it")
|
and os.path.exists(path)
|
||||||
|
):
|
||||||
|
logging.warning(
|
||||||
|
"Requirements.txt already exists, " "use --force to overwrite it"
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
if args.get('--no-pin'):
|
if args.get('--no-pin'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user