change PYTHONPATH

Help
2008-08-13
2013-05-01
  • Hi,
    I am working on a project that contains several packages and I am trying to run a module (test) that references a module in another package.

    I can always do
      sys.path.append('ProjectTopDir')
    but I wonder if there was a better way to do it. Eclipse/PyDev has this nice feature that will allow you to add specific paths to PYTHONPATH

    I tried to write a work-around .bat file that would
      set PROJ_DIR="D:\Workspace\project"
      set PYTHONPATH=%PROJ_DIR%
      "C:\Program Files\Boa Constructor\Boa.exe"

    But Boa does not take it into account somehow

    Any ideas
       Piotr

    P.S.:
    Feature Request:
    * It would be nice if boa could group several files into a 'project' much like Eclipse or VS can do. And also preserve the state of the project.

     
    • Don't have the answer on the path question.

      Regarding managing an application have you seen wx.App (5th icon on the New tab), it keeps track of the models in the app, there is also and application wide todo list view and documentation view.

      Werner