Skip to content

Commit

Permalink
Merge pull request #2 from alei1180/1-create-path-mrg-if-not-exists
Browse files Browse the repository at this point in the history
Создать каталог mrg если он не существует
  • Loading branch information
alei1180 authored Aug 11, 2024
2 parents 934bf2b + 643f0bc commit 4a7a5f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ocvc/ocvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ def file_name_from_window(window_name: str) -> str:
return file_name

path_to_save = rf"{os.getenv('TEMP')}\mrg\\"
if not os.path.exists(path_to_save):
os.makedirs(path_to_save)

cut_interval = window_name_cut_interval(window_name)
file_name = window_name[cut_interval["begin"]:cut_interval["end"]]
Expand Down

0 comments on commit 4a7a5f0

Please sign in to comment.