MRTestRepo/bubbles/python_modules/virt_env.py

36 lines
775 B
Python
Raw Normal View History

2024-07-08 12:38:34 +00:00
import os
import shutil
import getpass
checkuser = getpass.getuser()
print(checkuser)
# Set up the structure
home_path = '/home/' + checkuser + '/.local/share/'
working_directory = 'pmostools/'
working_path = os.path.join(home_path, working_directory)
#os.mkdir(working_path)
# Set up the environment
#make_environment ='cd ' + working_path + ' && python3 -m venv .peppermint'
#print(make_environment)
#os.chdir(working_path)
#activate_evnironment = '/bin/bash --rcfile /home/tommy/.local/share/pmostools/.peppermint/bin/activate'
#print(activate_evnironment)
set_up_packages = 'python3 -m pip install ttkbootstrap && ' \
'python3 -m pip install tendo'
#os.system(activate_evnironment)
os.system(set_up_packages)
#os.system(make_environment)