fix legacy version check
This commit is contained in:
parent
6640e5624c
commit
cf3b9782ac
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ def run():
|
|||
generate_liquidsoap_cfg.run()
|
||||
''' check liquidsoap version if less than 1.3 use legacy liquidsoap script '''
|
||||
liquidsoap_version = subprocess.check_output("liquidsoap --version", shell=True, universal_newlines=True)
|
||||
if pure.version_cmp(liquidsoap_version, "1.3") < 0:
|
||||
if "1.1.1" not in liquidsoap_version:
|
||||
script_path = os.path.join(os.path.dirname(__file__), 'ls_script.liq')
|
||||
else:
|
||||
script_path = os.path.join(os.path.dirname(__file__), 'ls_script_legacy.liq')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue