forked from TUDelft-CNS-ATM/bluesky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.py
53 lines (47 loc) · 1.1 KB
/
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
#!/usr/bin/python
import traceback
print "checking for pygame,",
try:
import pygame
except ImportError:
print "pygame is missing.."
else:
print 'OK.'
print "checking for scipy,",
try:
import scipy
except ImportError:
print "scipy is missing.."
else:
print 'OK.'
print "checking for numpy,",
try:
import numpy
except ImportError:
print "numpy is missing.."
else:
print 'OK.'
print "checking for matplotlib,",
try:
import matplotlib
except ImportError:
print "matplotlib is missing.."
else:
print 'OK.'
print "checking bluesky modules"
try:
from bluesky import *
from bluesky.ui import *
from bluesky.stack import *
from bluesky.sim import *
from bluesky.traf import *
from bluesky.traf.asas import *
from bluesky.traf.metric import *
from bluesky.traf.navdb import *
from bluesky.traf.params import *
from bluesky.traf.perf import *
except Exception, err:
print traceback.format_exc()
print "One or more bluesky modules is not working properly, check error for more detail."
else:
print "Cool! all modules good to go!"