Hi,
I'm trying to programmatically, in a new workspace,
- set python interpreter whose details are known,
- create a pydev project, using the interpreter.

I've tried things along the lines of

         String interpreterpersistedstring = 
"Name:dwspython:EndName:Version2.6......&&&&&";
         // as previously obtained from a getPersistedString
         IInterpreterManager im = PydevPlugin.getPythonInterpreterManager();
         im.setPersistedString(interpreterpersistedstring);

and then create the project using

         PyStructureConfigHelpers.createPydevProject(projectname,
                                                     projectLocationPath,
                                                     null, // IProject[] 
references
                                                     monitor,
                                                     
IPythonNature.PYTHON_VERSION_2_6,
                                                     "dwspython",
                                                     null, null, null);

The immediate problem with this is that the interpreter set with 
setPersistedString is not known by createPydevProject
also confirmed by  im.hasInfoOnInterpreter("dwspython")  returning false.
A call    im.saveInterpretersInfoModulesManager();   does not help 
either it seems.


Any help and hints on how to do this properly is greatly appreciated!

Thanks,
-- Thomas Johnsson







------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
pydev-code mailing list
pydev-code@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-code

Reply via email to