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 parse it
|
||||||
|
|
||||||
|
files = []
|
||||||
|
|
||||||
|
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)
|
||||||
|
|
||||||
|
Modules = {}
|
||||||
|
num = 1
|
||||||
|
for f in sorted(files):
|
||||||
|
|
||||||
# Let's get the list of files that supposed to be in here.
|
|
||||||
|
|
||||||
udata = open("settings/update.data")
|
|
||||||
udata = udata.read()
|
|
||||||
udata = udata.split("\n")
|
|
||||||
|
|
||||||
# Let's parse it
|
if num == h-5:
|
||||||
|
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
||||||
|
Modules = {}
|
||||||
|
num = 1
|
||||||
|
|
||||||
files = []
|
try:
|
||||||
|
test = open(f)
|
||||||
for f in udata:
|
test = test.read()
|
||||||
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 f.endswith(".py") and not "import bpy" in test\
|
||||||
|
and "-" not in f and f != "run.py" and not "network" in f:
|
||||||
if num == h-5:
|
Modules[f.replace("/", ".")[:-3]] = None
|
||||||
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
num += 1
|
||||||
Modules = {}
|
except:
|
||||||
num = 1
|
if not os.path.exists(os.getcwd()+"/"+f):
|
||||||
|
missing.append(f)
|
||||||
try:
|
|
||||||
test = open(f)
|
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
||||||
test = test.read()
|
|
||||||
|
except:
|
||||||
|
i = "settings/update.data"
|
||||||
|
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
||||||
|
|
||||||
if f.endswith(".py") and not "import bpy" in test\
|
output("\033[1;41m", " "+ans)
|
||||||
and "-" not in f and f != "run.py":
|
|
||||||
Modules[f.replace("/", ".")[:-3]] = None
|
for i in missing:
|
||||||
num += 1
|
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
||||||
except:
|
|
||||||
if not os.path.exists(os.getcwd()+"/"+f):
|
output("\033[1;41m", " "+ans)
|
||||||
missing.append(f)
|
|
||||||
|
|
||||||
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
|
|
||||||
|
|
||||||
except:
|
|
||||||
i = "settings/update.data"
|
|
||||||
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
|
||||||
|
|
||||||
output("\033[1;41m", " "+ans)
|
|
||||||
|
|
||||||
for i in missing:
|
|
||||||
ans = i + " "*int(w/2-len(i)) + talk.text("failed")
|
|
||||||
|
|
||||||
output("\033[1;41m", " "+ans)
|
|
||||||
|
|
||||||
|
|
||||||
desktop = """[Desktop Entry]
|
desktop = """[Desktop Entry]
|
||||||
|
|
Loading…
Reference in a new issue