Skip to content

Commit 823af7c

Browse files
Narek MkhitaryanNarek Mkhitaryan
authored andcommitted
fix logs folder create issue
1 parent a5e597a commit 823af7c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/superannotate/lib/core/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def setup_logging(level=DEFAULT_LOGGING_LEVEL, file_path=LOG_FILE_LOCATION):
4444
stream_handler.setFormatter(formatter)
4545
logger.addHandler(stream_handler)
4646
try:
47+
os.makedirs(file_path, exist_ok=True)
4748
log_file_path = os.path.join(file_path, "sa.log")
4849
open(log_file_path, "w").close()
4950
if os.access(log_file_path, os.W_OK):

0 commit comments

Comments
 (0)