Skip to content

Commit

Permalink
os.makedirs for pyscreenrec folder, fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanasati committed Oct 12, 2024
1 parent 4ae4443 commit b32b66c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pyscreenrec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ def __init__(self) -> None:
self.__running = False
self.__start_mode = "start"
self.screenshot_folder = os.path.join(
os.path.expanduser("~"), "pyscreenrec_data"
os.path.expanduser("~"), ".pyscreenrec_data"
)
os.makedirs(self.screenshot_folder, exist_ok=True)

# making the screenshot directory if not exists
if not os.path.exists(self.screenshot_folder):
os.mkdir(self.screenshot_folder)
# clearing all the previous data if last session ended unsuccessfully
self._clear_data()

Expand Down

0 comments on commit b32b66c

Please sign in to comment.