Help w/ wxFileName wxPathOnly wxFile ?

James Carroll wrote:

None of the following work:

import wx
# _workingDirectory = wxPathOnly(wxTheApp.argv[0])
# _workingDirectory = wx.PathOnly(wx.TheApp.argv[0])
# _workingDirectory = wx.FileName(wx.TheApp.argv[0]).GetPath()
# _workingDirectory = wx.File(wx.TheApp.argv[0]).GetPath()
# _workingDirectory = wx.File('.').GetPath()

As a rule, wxPython only wraps the wxWindows objects there are no Python equivalents for. This is mostly the GUI stuff.

Where in the source can I find this sort of thing (so I can figure it
out on my own next time?)

It's probably not there. Check out the sys.path module in the Python standard library.

-Chris

ยทยทยท

--
Christopher Barker, Ph.D.
Oceanographer
                                         
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov