Completely reworked event contractor
This commit is contained in:
parent
f801fcb81e
commit
a6f1d4b7ec
7 changed files with 100 additions and 34 deletions
|
@ -1,19 +1,15 @@
|
|||
import shutil
|
||||
import subprocess
|
||||
# The tests rely on a lot of absolute paths and other garbage so this file
|
||||
# configures all of that
|
||||
|
||||
music_folder = u'/home/rudi/music'
|
||||
o_path = u'/home/rudi/throwaway/ACDC_-_Back_In_Black-sample-64kbps.ogg'
|
||||
watch_path = u'/home/rudi/throwaway/fucking_around/watch/',
|
||||
real_path1 = u'/home/rudi/throwaway/fucking_around/watch/unknown/unknown/ACDC_-_Back_In_Black-sample-64kbps-64kbps.ogg'
|
||||
opath = u"/home/rudi/Airtime/python_apps/media-monitor2/tests/"
|
||||
ppath = u"/home/rudi/Airtime/python_apps/media-monitor2/media/"
|
||||
sample_config = u'/home/rudi/Airtime/python_apps/media-monitor2/tests/api_client.cfg'
|
||||
real_config = u'/home/rudi/Airtime/python_apps/media-monitor2/tests/live_client.cfg'
|
||||
|
||||
api_client_path = '/etc/airtime/api_client.cfg'
|
||||
|
||||
if __name__ == "__main__":
|
||||
shutil.copy(api_client_path, real_config)
|
||||
# TODO : fix this to use liberal permissions
|
||||
subprocess.call(["chown","rudi",real_config])
|
||||
# holdover from the time we had a special config for testing
|
||||
sample_config = api_client_path
|
||||
real_config = api_client_path
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue