-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckSystem.py
More file actions
104 lines (81 loc) · 3.21 KB
/
checkSystem.py
File metadata and controls
104 lines (81 loc) · 3.21 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import pygame
## this file should contain code which is ONLY Check current
## system is fulfill the requirement to run this game or not,
## please make requirement is False if something went wrong
requirementFlag = True
def checkSystem():
print "current pygame version :-",pygame.ver
try:
if pygame.font is None:
print "The font module is not available!"
requirementFlag = False
if pygame.cdrom is None:
print "The cdrom module is not available!"
requirementFlag = False
if pygame.cursors is None:
print "The cursers module is not available!"
requirementFlag = False
if pygame.display is None:
print "The display module is not available!"
requirementFlag = False
if pygame.draw is None:
print "The draw module is not available!"
requirementFlag = False
if pygame.event is None:
print "The event module is not available!"
requirementFlag = False
if pygame.font is None:
print "The font module is not available!"
requirementFlag = False
if pygame.image is None:
print "The image module is not available!"
requirementFlag = False
if pygame.joystick is None:
print "The joystick module is not available!"
requirementFlag = False
if pygame.key is None:
print "The key module is not available!"
requirementFlag = False
if pygame.mixer is None:
print "The mixer module is not available!"
requirementFlag = False
if pygame.mouse is None:
print "The mouse module is not available!"
requirementFlag = False
if pygame.movie is None:
print "The movie module is not available!"
requirementFlag = False
if pygame.music is None:
print "The music module is not available!"
requirementFlag = False
if pygame.overlay is None:
print "The overlay module is not available!"
requirementFlag = False
if pygame is None:
print "install pygame"
requirementFlag = False
if pygame.rect is None:
print "The rect module is not available!"
requirementFlag = False
if pygame.sndarray is None:
print "The sndarray module is not available!"
requirementFlag = False
if pygame.sprite is None:
print "The sprite module is not available!"
requirementFlag = False
if pygame.surface is None:
print "The surface module is not available!"
requirementFlag = False
if pygame.surfarray is None:
print "The surfarry module is not available!"
requirementFlag = False
if pygame.time is None:
print "The time module is not available!"
requirementFlag = False
if pygame.transform is None:
print "The transform module is not available!"
requirementFlag = False
except AttributeError as E:
requirementFlag = False
print E
return requirementFlag