Modifications
This commit is contained in:
parent
9c9cd8e1be
commit
f6cf881283
1 changed files with 64 additions and 68 deletions
|
@ -235,85 +235,81 @@ def modules_test(Modules, title, setting):
|
||||||
print("\033[1;m")
|
print("\033[1;m")
|
||||||
|
|
||||||
|
|
||||||
if not settings.read("Python-is-good"):
|
Modules = {
|
||||||
|
"os":None,
|
||||||
|
"gi":None,
|
||||||
|
"gi.repository.Gtk":None,
|
||||||
|
"gi.repository.GLib":None,
|
||||||
|
"cairo":None,
|
||||||
|
"PIL":None,
|
||||||
|
"PIL.Image":None,
|
||||||
|
"subprocess":None,
|
||||||
|
"datetime":None,
|
||||||
|
"sys":None,
|
||||||
|
"urllib":None,
|
||||||
|
"urllib3":None,
|
||||||
|
"socket":None,
|
||||||
|
"readline":None,
|
||||||
|
"json":None,
|
||||||
|
"threading":None
|
||||||
|
}
|
||||||
|
|
||||||
Modules = {
|
modules_test(Modules, "checkingpythonmodules", "Python-is-good")
|
||||||
"os":None,
|
|
||||||
"gi":None,
|
|
||||||
"gi.repository.Gtk":None,
|
|
||||||
"gi.repository.GLib":None,
|
|
||||||
"cairo":None,
|
|
||||||
"PIL":None,
|
|
||||||
"PIL.Image":None,
|
|
||||||
"subprocess":None,
|
|
||||||
"datetime":None,
|
|
||||||
"sys":None,
|
|
||||||
"urllib":None,
|
|
||||||
"urllib3":None,
|
|
||||||
"socket":None,
|
|
||||||
"readline":None,
|
|
||||||
"json":None,
|
|
||||||
"threading":None
|
|
||||||
}
|
|
||||||
|
|
||||||
modules_test(Modules, "checkingpythonmodules", "Python-is-good")
|
missing = []
|
||||||
|
|
||||||
if not settings.read("VCStudio-is-good"):
|
try:
|
||||||
|
|
||||||
missing = []
|
# Let's get the list of files that supposed to be in here.
|
||||||
|
|
||||||
try:
|
udata = open("settings/update.data")
|
||||||
|
udata = udata.read()
|
||||||
|
udata = udata.split("\n")
|
||||||
|
|
||||||
# Let's get the list of files that supposed to be in here.
|
# Let's parse it
|
||||||
|
|
||||||
udata = open("settings/update.data")
|
files = []
|
||||||
udata = udata.read()
|
|
||||||
udata = udata.split("\n")
|
|
||||||
|
|
||||||
# Let's parse it
|
for f in udata:
|
||||||
|
if f and not f.startswith("VERSION") and not f.startswith("[") \
|
||||||
|
and not f.startswith("#") and f not in files:
|
||||||
|
files.append(f)
|
||||||
|
|
||||||
files = []
|
Modules = {}
|
||||||
|
num = 1
|
||||||
for f in udata:
|
for f in sorted(files):
|
||||||
if f and not f.startswith("VERSION") and not f.startswith("[") \
|
|
||||||
and not f.startswith("#") and f not in files:
|
|
||||||
files.append(f)
|
|
||||||
|
|
||||||
Modules = {}
|
|
||||||
num = 1
|
|
||||||
for f in sorted(files):
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if num == h-5:
|
if num == h-5:
|
||||||
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
||||||
Modules = {}
|
Modules = {}
|
||||||
num = 1
|
num = 1
|
||||||
|
|
||||||
try:
|
try:
|
||||||
test = open(f)
|
test = open(f)
|
||||||
test = test.read()
|
test = test.read()
|
||||||
|
|
||||||
if f.endswith(".py") and not "import bpy" in test\
|
if f.endswith(".py") and not "import bpy" in test\
|
||||||
and "-" not in f and f != "run.py":
|
and "-" not in f and f != "run.py" and not "network" in f:
|
||||||
Modules[f.replace("/", ".")[:-3]] = None
|
Modules[f.replace("/", ".")[:-3]] = None
|
||||||
num += 1
|
num += 1
|
||||||
except:
|
except:
|
||||||
if not os.path.exists(os.getcwd()+"/"+f):
|
if not os.path.exists(os.getcwd()+"/"+f):
|
||||||
missing.append(f)
|
missing.append(f)
|
||||||
|
|
||||||
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
||||||
|
|
||||||
except:
|
except:
|
||||||
i = "settings/update.data"
|
i = "settings/update.data"
|
||||||
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
||||||
|
|
||||||
output("\033[1;41m", " "+ans)
|
output("\033[1;41m", " "+ans)
|
||||||
|
|
||||||
for i in missing:
|
for i in missing:
|
||||||
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
||||||
|
|
||||||
output("\033[1;41m", " "+ans)
|
output("\033[1;41m", " "+ans)
|
||||||
|
|
||||||
|
|
||||||
desktop = """[Desktop Entry]
|
desktop = """[Desktop Entry]
|
||||||
|
|
Loading…
Reference in a new issue