Skip to content

Commit a865736

Browse files
Check if directory before passing in
1 parent 0d4f78a commit a865736

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
logger.debug("Path to .cpypmconfig was passed in!")
4141
logger.debug(f"Path is {repr(argv[1])}")
4242
path = Path(argv[1])
43+
if path.is_dir():
44+
path = None
4345

4446
logger.debug(f"Starting application...")
4547
logger.info(f"Log level is {repr(LEVEL)}")

0 commit comments

Comments
 (0)