Update Datamosher Pro v1.5.py

This commit is contained in:
Akash Bora
2022-01-03 17:57:07 +05:30
committed by GitHub
parent ba4482d847
commit 89af07fffc

View File

@@ -26,7 +26,8 @@ if missing:
y=missingset[x] y=missingset[x]
subprocess.Popen('python -m pip install '+y) subprocess.Popen('python -m pip install '+y)
messagebox.showinfo("Module Installed","Please restart the program!") messagebox.showinfo("Module Installed","Please restart the program!")
sys.exit() import imageio
import numpy as np
except: except:
messagebox.showerror("Error downloading modules","Please download the neccessary modules separately!\n Required: Imageio, Imageio-ffmpeg") messagebox.showerror("Error downloading modules","Please download the neccessary modules separately!\n Required: Imageio, Imageio-ffmpeg")
sys.exit() sys.exit()
@@ -36,12 +37,12 @@ if missing:
else: else:
import imageio import imageio
import numpy as np import numpy as np
if os.path.isdir("pymosh") and os.path.isdir("ffglitch") and os.path.isdir("Assets"): if os.path.isdir("pymosh") and os.path.isdir("ffglitch") and os.path.isdir("Assets"):
from pymosh import Index from pymosh import Index
from pymosh.codec.mpeg4 import is_iframe from pymosh.codec.mpeg4 import is_iframe
else: else:
messagebox.showerror("Missing Folder!","Some folder(s) are not available! Please download it from our github page.") messagebox.showerror("Missing Folder!","Some folder(s) are not available! Please download it from our github page.")
sys.exit() sys.exit()
def resource_path0(relative_path): def resource_path0(relative_path):
base_path = getattr( base_path = getattr(
sys, sys,