INNER CODE UNIT · Python

IsPath

loxy0devlp/RedTiger-Tools · setup.py:14

def IsPath(path): return shutil.which(path) is not None

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:")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…