<filename>src/py_call.py<gh_stars>0
#/bin/python3

import os
import subprocess

# Const:
with open("config",'r') as conf:
    VENV_A = conf.read()

PYTHON="python"
PYTHON3_VENV_A = os.path.join(VENV_A, "bin", "python3")

PIP=""
PIP_VENV_A= os.path.join(VENV_A, "bin", "pip3")

# Functions:

def python_call(argv):
    subprocess.call([PYTHON, argv])

def python_vcall(argv):
    subprocess.check_output([PYTHON3_VENV_A, argv])

def pip_vinstall(argv):
    subprocess.check_output([PIP_VENV_A, argv])
    

<filename>src/py_call.py<gh_stars>0
#/bin/python3

import os
import subprocess

# Const:
with open("config",'r') as conf:
    VENV_A = conf.read()

PYTHON="python"
PYTHON3_VENV_A = os.path.join(VENV_A, "bin", "python3")

PIP=""
PIP_VENV_A= os.path.join(VENV_A, "bin", "pip3")

# Functions:

def python_call(argv):
    subprocess.call([PYTHON, argv])

def python_vcall(argv):
    subprocess.check_output([PYTHON3_VENV_A, argv])

def pip_vinstall(argv):
    subprocess.check_output([PIP_VENV_A, argv])
    

#/bin/python3 # Const: # Functions: