Ticket #146 (closed defect: fixed)

Opened 7 months ago

Last modified 3 months ago

Default save directories for OWD not useful

Reported by: balister Assigned to: cdietric
Priority: minor Milestone: 0.7.0
Component: component Version: 0.6.2
Keywords: Cc:

Description

When I try and save something with OWD, the file choser box defaults to the directory owd is run from. Can we change this to something reasonable, such as my home directory?

Change History

04/24/08 17:46:51 changed by DrewCormier

Here are the lines that should be setting the path to the default director

dlg = wx.DirDialog?(self,"Please select the place to generate the code",style=wx.DD_NEW_DIR_BUTTON) dlg.SetPath?(os.getcwd())

The first line generates the dialog box. You can send it a variable defaultPath. (e.g., dlg = wx.DirDialog?(self,"Please select the place to generate the code",defaultPath = "/sdr", style=wx.DD_NEW_DIR_BUTTON) )

This does not seem to be working however.

SetPath? should be doing the same thing as passing a default path in the first line, which is obviously also not working.

os.getcwd() returns the equivalent of "~"

05/07/08 15:01:20 changed by bhilburn

  • status changed from new to closed.
  • resolution set to fixed.

This is fixed as of revision [7517].