Skip to content

Commit

Permalink
exe
Browse files Browse the repository at this point in the history
  • Loading branch information
saeidspark committed Dec 19, 2024
1 parent 2fb9ebe commit c51d20d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from watchdog.observers import Observer
import logging
from time import sleep
import os

# ! NO NEED TO CHANGE BELOW CODE
if __name__ == "__main__":
Expand Down
3 changes: 1 addition & 2 deletions source/mover.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
import logging
from configparser import ConfigParser
from watchdog.events import FileSystemEventHandler
from win10toast import ToastNotifier
from source.directories import Directories
from config.config import image_extensions, video_extensions, audio_extensions, document_extensions, program_extensions, contact_extensions
import os
from time import sleep

dir_path = [os.path.realpath(os.path.join(os.path.dirname(__file__), '..'))]
dir_path = [os.path.realpath(os.path.join(os.path.dirname(__file__), '../..'))]
dir_path_str = str(dir_path[0])
os.chdir(dir_path_str)

Expand Down
2 changes: 1 addition & 1 deletion source/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
class Startup:
def add_to_startup(self):
key = reg.OpenKey(reg.HKEY_CURRENT_USER, r"Software\Microsoft\Windows\CurrentVersion\Run", 0, reg.KEY_ALL_ACCESS)
dirpath = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'DesktopCleaner.exe'))
dirpath = os.path.abspath(os.path.join(os.path.dirname(__file__), "../..", "DesktopCleaner.exe"))
reg.SetValueEx(key, "DesktopCleaner", 0, reg.REG_SZ, dirpath)

0 comments on commit c51d20d

Please sign in to comment.