diff options
-rw-r--r-- | test/uitests.sikuli/config.py | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/test/uitests.sikuli/config.py b/test/uitests.sikuli/config.py index 342bbdc..e326c17 100644 --- a/test/uitests.sikuli/config.py +++ b/test/uitests.sikuli/config.py @@ -1,22 +1,25 @@ -#config.py +# config.py import os import time from sikuli.Sikuli import * def set_image_dirs(): - """Set the Sikuli image path for the os specific image directory and the main Image dir. - + """Set the Sikuli image path for the os specific + image directory and the main Image dir. """ - os_imgs = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Images_"+get_os_name()) + os_imgs = os.path.join(os.path.dirname(os.path.abspath(__file__)), + "Images_"+get_os_name()) imgs = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Images") dir_list = [imgs, os_imgs] - #Add the image dirs to the sikuli search path if it is not in there already + # Add the image dirs to the sikuli search + # path if it is not in there already for d in dir_list: if d not in list(getImagePath()): addImagePath(d) - + + def get_os_name(): """Returns the os string for the SUT """ @@ -36,12 +39,13 @@ def launch_cmd(): launch is an os specific command """ if get_os_name() == "osx": - launch_cmd = "/Applications/Miro Video Converter.app" + launch_cmd = "/Applications/Libre Video Converter.app" elif get_os_name() == "win": - launch_cmd = os.path.join(os.getenv("PROGRAMFILES"),"Participatory Culture Foundation","Miro Video Converter","MiroConverter.exe") + launch_cmd = os.path.join(os.getenv("PROGRAMFILES"), + "Participatory Culture Foundation", + "Libre Video Converter", + "LibreConverter.exe") else: print get_os_name() print launch_cmd return launch_cmd - - |