mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-07 12:05:33 +00:00
Modify logging level of "Requirement.txt already exists" to warning
This commit is contained in:
parent
9a1f9e87dd
commit
2c4ad02bfb
@ -166,7 +166,7 @@ def init(args):
|
|||||||
os.path.join(args['<path>'], "requirements.txt"))
|
os.path.join(args['<path>'], "requirements.txt"))
|
||||||
|
|
||||||
if not args["--savepath"] and not args["--force"] and os.path.exists(path):
|
if not args["--savepath"] and not args["--force"] and os.path.exists(path):
|
||||||
logging.info("Requirements.txt already exists, "
|
logging.warning("Requirements.txt already exists, "
|
||||||
"use --force to overwrite it")
|
"use --force to overwrite it")
|
||||||
return
|
return
|
||||||
generate_requirements_file(path, imports)
|
generate_requirements_file(path, imports)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user