Menu ▾ ▴

PyDev project properties

2009-05-12
2013-03-15
  • attila peterffy

    attila peterffy - 2009-05-12

    Hi!

    How can one set programmatically an existing PyDev project properties (especially "External Source Folder") from an another custom plug-in ?

    Regards,
    Attila

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-05-13

      PythonNature pythonNature = PythonNature.getPythonNature(project);
      if(pythonNature != null){
          pythonNature.getPythonPathNature().setProjectExternalSourcePath("c:\\temp\\path1|c:\\temp\\path2");
          pythonNature.rebuildPath();
      }