Modifications

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2021-01-02 23:38:44 +00:00
parent 9c9cd8e1be
commit f6cf881283

View file

@ -235,85 +235,81 @@ def modules_test(Modules, title, setting):
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 = {
"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")
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 = []
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):
try:
test = open(f)
test = test.read()
if num == h-5:
modules_test(Modules, "checkingpartsoftheprogramm", "VCStudio-is-good")
Modules = {}
num = 1
try:
test = open(f)
test = test.read()
if f.endswith(".py") and not "import bpy" in test\
and "-" not in f and f != "run.py" and not "network" in f:
Modules[f.replace("/", ".")[:-3]] = None
num += 1
except:
if not os.path.exists(os.getcwd()+"/"+f):
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")
if f.endswith(".py") and not "import bpy" in test\
and "-" not in f and f != "run.py":
Modules[f.replace("/", ".")[:-3]] = None
num += 1
except:
if not os.path.exists(os.getcwd()+"/"+f):
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)
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]