|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
__check(){
|
|
|
|
|
grep -r -e "^import" -e "^from" TermTk |
|
|
|
|
|
grep -v -e "from TermTk" -e "import TermTk" |
|
|
|
|
|
grep -v "__init__.py:from \.[^ ]* *import" |
|
|
|
|
|
grep -v -e "import re" -e "import os" -e "import datetime" |
|
|
|
|
|
grep -v \
|
|
|
|
|
-e "from dataclasses" \
|
|
|
|
|
-e "signal.py:from inspect import getfullargspec" \
|
|
|
|
|
-e "signal.py:from types import LambdaType" \
|
|
|
|
|
-e "colors.py:from .colors_ansi_map" \
|
|
|
|
|
-e "log.py:import inspect" \
|
|
|
|
|
-e "log.py:import logging" \
|
|
|
|
|
-e "log.py:from collections.abc import Callable, Set" \
|
|
|
|
|
-e "from time" -e "input.py:import platform" \
|
|
|
|
|
-e "readinputlinux.py:import sys, os" \
|
|
|
|
|
-e "readinputlinux.py:from select import select" \
|
|
|
|
|
-e "readinputlinux_thread.py:import sys, os" \
|
|
|
|
|
-e "readinputlinux_thread.py:from select import select" \
|
|
|
|
|
-e "readinputlinux_thread.py:import threading" \
|
|
|
|
|
-e "readinputlinux_thread.py:import queue" \
|
|
|
|
|
-e "term.py:import importlib.util" \
|
|
|
|
|
-e "term.*.py:import sys, os, signal" \
|
|
|
|
|
-e "term.*.py:from .term_base import TTkTermBase" \
|
|
|
|
|
-e "term_pyodide.py:import pyodideProxy" \
|
|
|
|
|
-e "timer.py:import importlib" \
|
|
|
|
|
-e "timer_unix.py:import threading" \
|
|
|
|
|
-e "timer_pyodide.py:import pyodideProxy" \
|
|
|
|
|
-e "ttk.py:import signal" \
|
|
|
|
|
-e "ttk.py:import time" \
|
|
|
|
|
-e "ttk.py:import queue" \
|
|
|
|
|
-e "ttk.py:import threading" \
|
|
|
|
|
-e "ttk.py:import platform" \
|
|
|
|
|
-e "clipboard.py:import importlib.util" \
|
|
|
|
|
-e "filebuffer.py:import threading" \
|
|
|
|
|
-e "texedit.py:from math import log10, floor" \
|
|
|
|
|
-e "string.py:import unicodedata" \
|
|
|
|
|
-e "progressbar.py:import math" \
|
|
|
|
|
-e "uiloader.py:import json" \
|
|
|
|
|
-e "uiproperties.py:from .properties import *" \
|
|
|
|
|
-e "util.py:import zlib, pickle, base64" \
|
|
|
|
|
-e "propertyanimation.py:from inspect import getfullargspec" \
|
|
|
|
|
-e "propertyanimation.py:from types import LambdaType" \
|
|
|
|
|
-e "propertyanimation.py:import time, math"
|
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
if __check ; then
|
|
|
|
|
echo "Failed Dependencies verification!!!" ;
|
|
|
|
|
echo "Please check:" ;
|
|
|
|
|
echo "#######################"
|
|
|
|
|
__check ;
|
|
|
|
|
echo "#######################"
|
|
|
|
|
exit 1 ;
|
|
|
|
|
else
|
|
|
|
|
echo "Dependencies Verified!!!"
|
|
|
|
|
exit 0 ;
|
|
|
|
|
fi ;
|