mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 13:47:26 +02:00
Use commands instead of subprocess.check_output
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import commands
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
FRAMEWORK_SEARCH_PATH=[
|
FRAMEWORK_SEARCH_PATH=[
|
||||||
@@ -27,7 +28,7 @@ FRAMEWORK_SEARCH_PATH=[
|
|||||||
|
|
||||||
LIBRARY_SEARCH_PATH=['/usr/local/lib', '/usr/local/Cellar/gettext/0.18.1.1/lib', '.']
|
LIBRARY_SEARCH_PATH=['/usr/local/lib', '/usr/local/Cellar/gettext/0.18.1.1/lib', '.']
|
||||||
|
|
||||||
LIBSPOTIFY_VERSION = subprocess.check_output("brew ls -version libspotify | tr -s \" \" \"\\\\012\" | tail -n 1", shell=True).strip()
|
LIBSPOTIFY_VERSION = commands.getoutput("brew ls -version libspotify | tr -s \" \" \"\\\\012\" | tail -n 1").strip()
|
||||||
LIBSPOTIFY_PATH = "/usr/local/lib/libspotify.%s.dylib" % LIBSPOTIFY_VERSION
|
LIBSPOTIFY_PATH = "/usr/local/lib/libspotify.%s.dylib" % LIBSPOTIFY_VERSION
|
||||||
|
|
||||||
VLC_PLUGINS=[
|
VLC_PLUGINS=[
|
||||||
|
Reference in New Issue
Block a user