← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #223952]: Default path for App.open

 

Question #223952 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/223952

    Status: Answered => Open

Alex Nilsson is still having a problem:
No, I have an earlier version (much earlier) of the code, running fine
on another machine, with the blanks in the filename..I'm thinking I've
screwed up the systempath..

Made this in sikuli so I could refer directly to files in the dir,
instead of having to define the entire path:

SystemPaths=[r'"C:\WINDOWS\system32"',r'"C:\Documents and Settings\admsisse\Desktop\addInsSekuli\fx"',
        r'"C:\Documents and Settings\admsisse\Desktop\addInsSekuli"']
for Path in SystemPaths:
    if not Path in sys.path: sys.path.append(Path)

In a command console window (I've added addInsSekuli and addInsSekuli\fx
to the sys vars path in windows) I can run the passwordTool.cmd. So you
should just be able to do an App.open("passwordTool.cmd"), but that's a
no go.. :-S

I can, however, refer to files in the system32 directly (like if I copy
the cmd file over in system32 I can App.open("passwordTool.cmd") ), but
only in the system32 dir..I've also been having difficulty referring to
functions I've made in separate .py files, under C:\Documents and
Settings\admsisse\Desktop\addInsSekuli\fx, suddenly they also does not
exist, when I refer to them..

I would be willing to accept "the blanks in the path" explanation, if
only I hadn't used them for ½ a year, without this happening..

Is there a way to reset all sys.path in sikuli?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.