36 lines
775 B
Python
36 lines
775 B
Python
|
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)
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|