How do I call wx.StandardPaths.Get()

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:
Gadget/Steve

ยทยทยท

On 12/10/14 05:31, Igor Korot wrote:


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.

`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``

  `