diff options
author | Jesús Eduardo <heckyel@hyperbola.info> | 2018-01-17 19:57:08 -0500 |
---|---|---|
committer | Jesús Eduardo <heckyel@hyperbola.info> | 2018-01-17 19:57:08 -0500 |
commit | fd73bee4e9fcf8a5aea4a9cb463f6a67b38fb8dd (patch) | |
tree | fd96eaa6aa70e61d1c7f79b2c02a368a883f72e5 | |
parent | 8925efac1e79a2b3dd53679ef8b60d125ace3aca (diff) | |
download | librevideoconverter-fd73bee4e9fcf8a5aea4a9cb463f6a67b38fb8dd.tar.lz librevideoconverter-fd73bee4e9fcf8a5aea4a9cb463f6a67b38fb8dd.tar.xz librevideoconverter-fd73bee4e9fcf8a5aea4a9cb463f6a67b38fb8dd.zip |
pep8 en test/uitests.sikuli/config.py
-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 - - |