Skip to content

Commit 4753bb2

Browse files
fixed some minor bugs
1 parent 28e30a2 commit 4753bb2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

auto_download_cleaner.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
import shutil
33
import variable as var
44
import tray_icon as ti
5+
import time as time
56
def move_the_file_to_right_place(main_directory, move_folder, filename):
67
if not os.path.exists(move_folder):
78
os.makedirs(move_folder)
89
shutil.move(os.path.join(main_directory, filename), os.path.join(move_folder, filename))
910
def check_file_extension(file_ext, dir, mov_dir, filename):
1011
if filename.endswith(file_ext):
12+
time.sleep(1)
1113
move_the_file_to_right_place(main_directory=dir, move_folder=mov_dir, filename=filename)
1214
def main_stuff():
1315
print('Program started.')

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
# Dependencies are automatically detected, but it might need
55
# fine tuning.
6-
build_options = {'packages': [], 'excludes': [],'build_exe': 'build_windows'}
6+
build_options = {'packages': [], 'excludes': [],'build_exe': 'build_windows','include_files':['icon.ico']}
77

88
base = 'Win32GUI' if sys.platform=='win32' else None
99

1010
executables = [
11-
Executable('main.py', base=base, target_name = 'Auto-Download-Cleanup',uac_admin=True,icon='icon.ico')
11+
Executable('auto_download_cleaner.py', base=base, target_name = 'Auto-Download-Cleanup',icon='icon.ico')
1212
]
1313

1414
setup(name='Auto-Download-Cleanup',

0 commit comments

Comments
 (0)