sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57613
[Bug 1899843] Re: [2.0.4] IDE: Jython scripting: os.chdir progresses after script has exited
Since scriptruns in the IDE are done with the same Jython interpreter
instance (singleton), you are responsible for setting/resetting your own
changes of interpreter states.
** Changed in: sikuli
Status: In Progress => Won't Fix
** Changed in: sikuli
Importance: Medium => Undecided
** Changed in: sikuli
Milestone: 2.0.5 => 2.0.6
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1899843
Title:
[2.0.4] IDE: Jython scripting: os.chdir progresses after script has
exited
Status in SikuliX:
Won't Fix
Bug description:
if you do os.chdir("path") inside the IDE and run it, when you run the
script again it starts at the new directory. So you have to always do
chdir("absolute path to start script") at the beginning of the script
if you are later using chdir() in the script.
IDE 2.0.4
Mac Os Mojave, 64 bit, 10.14.6
#This will work the first time
f = open("strings.txt", "r")
os.chdir("/Users/name/Downloads")
#Run script again
f = open("strings.txt", "r") <- error here
os.chdir("/Users/name/Downloads")
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1899843/+subscriptions
References