Skip to content

Commit

Permalink
v181
Browse files Browse the repository at this point in the history
  • Loading branch information
annihilation7071 committed Feb 4, 2025
1 parent c89e643 commit 4858118
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion backend/modules/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,15 @@ def init():

if settings.filehandler_separated or settings.filehandler_all:
__path = Path(settings.path)
shutil.rmtree(__path, ignore_errors=True)
Path(__path).mkdir(parents=True, exist_ok=True)
files = os.listdir(__path)

for file in files:
if file != ".gitkeep":
try:
shutil.rmtree(__path / file, ignore_errors=True)
except:
os.remove(__path / file)

if settings.sockethandler:
ip = settings.sockethandler_settings.split(":")[0]
Expand Down
2 changes: 1 addition & 1 deletion settingsUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def __init__(self):
super().__init__()

self.title("SF.ViewerH Settings")
self.geometry("800x500")
self.geometry("800x500+500+400")
self.grid_rowconfigure(0, weight=1)
self.grid_columnconfigure(0, weight=1)

Expand Down

0 comments on commit 4858118

Please sign in to comment.