← Back to team overview

sikuli-driver team mailing list archive

[Bug 1899843] Re: [2.0.4] IDE: Jython scripting: os.chdir progresses after script has exited

 

** Summary changed:

- os.chdir progresses after script has exited
+ [2.0.4] IDE: Jython scripting: os.chdir progresses after script has exited

** Changed in: sikuli
       Status: New => In Progress

** Changed in: sikuli
   Importance: Undecided => Medium

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 2.0.5

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1899843

Title:
  [2.0.4] IDE: Jython scripting: os.chdir progresses after script has
  exited

Status in Sikuli:
  In Progress

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