mirror of
https://github.com/FakeTV/pseudo-channel.git
synced 2025-12-15 15:53:50 +00:00
python3 migration
This commit is contained in:
19
setup.py
19
setup.py
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user