mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-15 18:36:30 +08:00
11 lines
409 B
Python
11 lines
409 B
Python
from get_general_settings import *
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
def check_and_apply_update():
|
|
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT).split('\n')
|
|
|
|
if result[2] is not '':
|
|
subprocess.check_output(["git", "pull", 'origin', branch])
|
|
os.execlp('python', 'python ' + os.path.join(os.path.dirname(__file__), 'bazarr.py'))
|