← Back to team overview

sikuli-driver team mailing list archive

[Question #700969]: Parameter and imagepath escape characters

 

New question #700969 on SikuliX:
https://answers.launchpad.net/sikuli/+question/700969

Hello, I am having trouble understanding how paths work with Sikuli and Jython. 

My project is set up into "threads" which execute high level test automation, and "apps" which deal with interacting with the actual programs running on the computer. 
The folder structure is as follows:

main
|----Applications
       |----appAgile.sikuli
       |----appETC.sikuli
|----Threads
      |----threadAgile.sikuli
      |----threadETC.sikuli
(There are many apps and threads, but this information is not super important.)

In my threads I import apps in order to interact with only the programs that thread needs, and keep my code clean. Of course, at the top of each file I have 'from sikuli import *' as instructed. 

My problem lies in the following: When I am working in threadAgile, and try to import appAgile, I get two errors:
[ERROR Commons] parameter(main: C:\Users\blahblahblah\main\Applications□ppAgile.sikuli, sub:null)
[ERROR Commons] makeURL: mainFile.GetCanonicalFile().toURI().toURL(): C:\Users\blahblahbla\main\Applications□ppAgile.sikuli (The filename, directory name, or volume label syntax is incorrect)

It appears that \a in the file path is being replaced with a unicode alert character. Sikuli can not find any of the images I inserted in appAgile because of this, and all finds end up failing. What is even more strange is that despite all the app's names starting with "app" this issue only happens with appAgile.

To make things even worse, I have tried running threadAgile on two different versions of Sikuli, 2.0.5 and 1.1.0. On both versions I get the ERROR Commons printout in the console. But in version 1.1.0 it can find the images, and in version 2.0.5 it can not.

If you have any ideas or guidance on how to fix this pathing issue, I would greatly appreciate it. Thank you.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.