mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +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)
|
||||
return
|
||||
|
||||
if (
|
||||
not args["--print"]
|
||||
and not args["--poetry"]
|
||||
and os.path.exists(path)):
|
||||
logging.warning("Requirements.txt already exists, "
|
||||
"use --force to overwrite it")
|
||||
and not args["--savepath"]
|
||||
and not args["--force"]
|
||||
and os.path.exists(path)
|
||||
):
|
||||
logging.warning(
|
||||
"Requirements.txt already exists, " "use --force to overwrite it"
|
||||
)
|
||||
return
|
||||
|
||||
if args.get('--no-pin'):
|
||||
|
Loading…
x
Reference in New Issue
Block a user