Dec-02-2017, 07:36 PM
import os
import os.path
import sys
import readline
def modcmd(arg):
# I want to declare the the sys.executable+" "+sys.prefix+"/bin/"
# as a constant but don't know what to name it.
os.system(sys.executable+" "+sys.prefix+"/bin/" +arg)
# I would also like to declare sys.prefix+"/bin/pip as a constant
# but again I'm not sure what to name it.
if not(os.path.exists(sys.prefix+"/bin/pip")):
print("You need to install pip first.")
print("Input pip commands, ie: pip install {module}")
while(True):
cmd=input("-->")
if (cmd==""): break;
modcmd(cmd)This script is part of qpython3 for Android.
