INNER CODE UNIT · Python
CheckPath
loxy0devlp/RedTiger-Tools · setup.py:16
def CheckPath():
path_python = IsPath("python") or IsPath("python3")
path_pip = IsPath("pip") or IsPath("pip3")
if not path_python:
print(f"{ERROR} Python is not in your path. Please install it or fix your path..")
return False
elif not path_pip:
print(f"{ERROR} Pip is not in your path. Please install it or fix your path.")
return False
else:
print(f"{INFO} Python and pip are correctly in your path.")
return True
def InstallDependencies():
print(f"{INFO} Installing the Python dependencies required for the RedTiger-Tools:")
try: subprocess.run([sys.executable, "-m", "pip", "install", "--upgrade", "pip", "--break-system-packages"], check=True)
except: