This repository was archived by the owner on Apr 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApplication.py
More file actions
33 lines (29 loc) · 1.42 KB
/
Copy pathApplication.py
File metadata and controls
33 lines (29 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# GamesManager
# ver.1
# By Clok Much
import config
import initial
import methods
methods.Tk().withdraw()
while True:
# chk config.Default
games_location = methods.winsys_isdir(config.Default.games_main_dir)
if not games_location:
tmp_message = "Your games' location in config.py is: %s , this folder is NOT exist!\n\n" \
"Solution:\nEdit: config.py - Default.games_main_dir to your game location.\n\n" \
"Press OK to exit." % config.Default.games_main_dir
methods.messagebox.showerror(title="Invalid config!",
message=tmp_message)
exit()
else:
games_index_location = config.Default.games_main_dir + config.Default.games_shortcuts_subdir
if not methods.winsys_isdir(games_index_location):
tmp_message = "Your games' shortcuts in config.py is: %s (Full path: %s), this folder is NOT exist!\n\n" \
"Solution:\nEdit: config.py - Default.games_shortcut_subdir to your shortcut subdir.\n\n" \
"Press OK to exit." % (config.Default.games_shortcuts_subdir,
config.Default.games_main_dir + config.Default.games_shortcuts_subdir)
methods.messagebox.showerror(title="Invalid config!",
message=tmp_message)
exit()
else:
pass