python3 migration

This commit is contained in:
Moe Fwacky
2021-02-17 23:59:56 -08:00
committed by GitHub
parent 045269c995
commit ac112d0c1c

View File

@@ -206,18 +206,15 @@ def ps_install(ps_branch='python3', path='./channels'):
configFile.write(configData) configFile.write(configData)
configFile.close() configFile.close()
copyconfig() copyconfig()
global_database_update() shutil.copy('./pseudo_config.py', '../')
shutil.copy('./plex_token.py', '../')
global_database_update('./') #run database scan
os.remove('../pseudo_config.py')
os.remove('../plex_token.py')
def global_database_update(): def global_database_update(path):
import Global_DatabaseUpdate os.chdir(path)
'''process = subprocess.Popen(["python", "-u", "Global_DatabaseUpdate.py", "-u"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True) from channels import Global_DatabaseUpdate
while True:
output = process.stdout.readline()
if process.poll() is not None:
break
if output:
print(output.strip())
rc = process.poll()'''
def select_libs(sectionsList): def select_libs(sectionsList):
x = 1 x = 1