From 89af07fffcf040f55d53aa4df144f8a714393765 Mon Sep 17 00:00:00 2001 From: Akash Bora <89206401+Akascape@users.noreply.github.com> Date: Mon, 3 Jan 2022 17:57:07 +0530 Subject: [PATCH] Update Datamosher Pro v1.5.py --- Python Version/Datamosher Pro v1.5.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Python Version/Datamosher Pro v1.5.py b/Python Version/Datamosher Pro v1.5.py index 8f019a1..877a603 100644 --- a/Python Version/Datamosher Pro v1.5.py +++ b/Python Version/Datamosher Pro v1.5.py @@ -26,7 +26,8 @@ if missing: y=missingset[x] subprocess.Popen('python -m pip install '+y) messagebox.showinfo("Module Installed","Please restart the program!") - sys.exit() + import imageio + import numpy as np except: messagebox.showerror("Error downloading modules","Please download the neccessary modules separately!\n Required: Imageio, Imageio-ffmpeg") sys.exit() @@ -36,12 +37,12 @@ if missing: else: import imageio import numpy as np - if os.path.isdir("pymosh") and os.path.isdir("ffglitch") and os.path.isdir("Assets"): - from pymosh import Index - from pymosh.codec.mpeg4 import is_iframe - else: - messagebox.showerror("Missing Folder!","Some folder(s) are not available! Please download it from our github page.") - sys.exit() +if os.path.isdir("pymosh") and os.path.isdir("ffglitch") and os.path.isdir("Assets"): + from pymosh import Index + from pymosh.codec.mpeg4 import is_iframe +else: + messagebox.showerror("Missing Folder!","Some folder(s) are not available! Please download it from our github page.") + sys.exit() def resource_path0(relative_path): base_path = getattr( sys,