setUsing does not work when path / parameter has spaces

Bug #2036888 reported by Chetan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
New
Undecided
Unassigned

Bug Description

when setusing has spaces in path then it does not open file. adding Quotes does not work and in that case application is launched but param is not passed. my path pay or may not have spaces any suggestion or solution

 someApp = App(acrobatPath)
    file_path_with_quotes = r'"' + file_path + '"'
    #file_path_with_quotes = file_path
    print(file_path_with_quotes)
    someApp.setUsing(file_path_with_quotes)
    someApp.open()

acrobatPath=
"C:\git\consumer\Automations\FeatTests\FEAT\Viewer\Framework_Testing\TestFiles\VerifyInvalidPageNumber.sikuli\test.pdf"

Revision history for this message
abuzer stream (abuzerstream) wrote :

You can look up escape characters in Python.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.