In general, if it is a feature that is otherwise implemented in Python or the Python Standard Library, wxPython won't implement it. So, wx.GetCwd() isn't implemented because we have:
import os
os.getcwd()
then it is IMHO a bit inconsitent. because we have os.getcwd() and wxGetHomeDir() as well. that's why I was wondering.
jan bodnar
The quivalent for os.getcwd() is wx.GetCwd(), which isn’t implemented.
wx.GetHomeDir() is okay, since AFAIK there is no direct equivalent in Python that works on all platforms.
Regards,
Nate
···
On Sep 27, 2005, at 1:34 PM, jan bodnar wrote:
then it is IMHO a bit inconsitent. because we have os.getcwd() and wxGetHomeDir() as well. that's why I was wondering.
jan bodnar
Nate Silva wrote:
then it is IMHO a bit inconsitent. because we have os.getcwd() and wxGetHomeDir() as well. that's why I was wondering.
jan bodnar
The quivalent for os.getcwd() is wx.GetCwd(), which isn’t implemented.
wx.GetHomeDir() is okay, since AFAIK there is no direct equivalent in Python that works on all platforms.
os.path.expanduser("~") should work on Windows, Mac OSX, and Unix
-Dan
···
On Sep 27, 2005, at 1:34 PM, jan bodnar wrote:
Regards,
Nate
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org