-
Notifications
You must be signed in to change notification settings - Fork 0
/
pymir_check.py
executable file
·112 lines (97 loc) · 2.22 KB
/
pymir_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
#!/usr/bin/env python
#
# This file is part of Astir
#
# Astir is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Astir is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Astir. If not, see <http://www.gnu.org/licenses/>.
#
# Astir Copyright (C) 2008 Julien Bert
from sys import stdout as info
# based
info.write('Loading libraries:\n')
info.write('string.........')
try:
import string
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('os.............')
try:
import os
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('sys............')
try:
import sys
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('math...........')
try:
import math
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('random.........')
try:
import random
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('copy...........')
try:
import copy
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('ctypes.........')
try:
import ctypes
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('pylibtiff......')
try:
import libtiff
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('Numpy..........')
try:
import numpy
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('Scipy..........')
try:
import scipy
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('Matplotlib.....')
try:
import matplotlib
info.write('[ok]\n')
except:
info.write('[E]\n')
info.write('FFmpeg.........')
import commands
res = commands.getoutput('ffmpeg -version')
if res.find('version') != -1:
#res = res.split('\n')[0]
#res = res.split()
#info.write('[ok] version %s\n' % res[2])
info.write('[ok]\n')
else:
info.write('[E]\n')