Discussion:
How do I call wx.StandardPaths.Get()
Igor Korot
2014-10-12 04:31:10 UTC
Permalink
Hi, ALL,
I am working on the application where I need to call
wx.StandardPaths.Get() to initialize the object.
Then I'd like to add the documents path to the python path with
sys.path.append() and do some import from the directories.
Only after that I will instantiate the wx.App object.

What's best way to achieve this?

Thank you.
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Steve Barnes
2014-10-12 07:22:52 UTC
Permalink
Post by Igor Korot
Hi, ALL,
I am working on the application where I need to call
wx.StandardPaths.Get() to initialize the object.
Then I'd like to add the documents path to the python path with
sys.path.append() and do some import from the directories.
Only after that I will instantiate the wx.App object.
What's best way to achieve this?
Thank you.
Igor,

You can always:

|import wx||
||import sys||
||
||tempApp = wx.App()||
||sp = wx.StardardPaths.Get()||
||docdir = sp.GetDocumentsDir()||
||adocs = sp.GetAppDocumentsDir()||
||del sp||
||del tempApp||
||sys.path.extend([docdir, adocs])||
||# Do your imports||
||# Create your actual app||
|


Gadget/Steve
--
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wxpython-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...