-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSimpleGUICS2Pygame_check.py
executable file
·149 lines (110 loc) · 3.46 KB
/
SimpleGUICS2Pygame_check.py
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/Users/sam/anaconda/envs/SimpleGUI/bin/python
# -*- coding: latin-1 -*-
"""
script/SimpleGUICS2Pygame_check.py
(April 21, 2014)
Piece of SimpleGUICS2Pygame.
https://bitbucket.org/OPiMedia/simpleguics2pygame
GPLv3 --- Copyright (C) 2013, 2014 Olivier Pirson
http://www.opimedia.be/
"""
from __future__ import print_function
from sys import version
########
# Main #
########
if __name__ == '__main__':
print("""script/SimpleGUICS2Pygame_check.py (April 21, 2014)
===================================================
python - version""", version)
print('\n')
CMD = 'import matplotlib'
try:
import matplotlib
print(CMD, 'ok - Version', matplotlib.__version__)
except Exception as exc:
print(CMD, 'FAILED!', exc)
print('\n')
CMD = 'import pygame'
try:
import pygame
print(CMD, 'ok - Version', pygame.version.ver)
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'pygame.init()'
try:
SUCCESS, FAILED = pygame.init()
if FAILED == 0:
print(CMD, SUCCESS, 'modules loaded ok')
else:
print(CMD, SUCCESS, 'modules loaded', FAILED, 'failed WARNING!')
except Exception as exc:
print(CMD, 'FAILED!', exc)
print('\n')
CMD = 'import SimpleGUICS2Pygame'
try:
import SimpleGUICS2Pygame
print(CMD, 'ok - Version', SimpleGUICS2Pygame._VERSION)
except Exception as exc:
print(CMD, 'FAILED!', exc)
print()
CMD = 'import SimpleGUICS2Pygame.codeskulptor'
try:
import SimpleGUICS2Pygame.codeskulptor
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.codeskulptor_lib'
try:
import SimpleGUICS2Pygame.codeskulptor_lib
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.numeric'
try:
import SimpleGUICS2Pygame.numeric
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simplegui_lib'
try:
import SimpleGUICS2Pygame.simplegui_lib
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simplegui_lib_draw'
try:
import SimpleGUICS2Pygame.simplegui_lib_draw
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simplegui_lib_fps'
try:
import SimpleGUICS2Pygame.simplegui_lib_fps
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simplegui_lib_keys'
try:
import SimpleGUICS2Pygame.simplegui_lib_keys
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simplegui_lib_loader'
try:
import SimpleGUICS2Pygame.simplegui_lib_loader
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simpleguics2pygame'
try:
import SimpleGUICS2Pygame.simpleguics2pygame
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)
CMD = 'import SimpleGUICS2Pygame.simpleplot'
try:
import SimpleGUICS2Pygame.simpleplot
print(CMD, 'ok')
except Exception as exc:
print(CMD, 'FAILED!', exc)