Changeset 7437

Show
Ignore:
Timestamp:
05/02/08 22:12:02 (5 years ago)
Author:
stedwar2
Message:

Fixed the search path setup to support an overriding library
of wavedev components.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/jsnyder/ComponentProject/src/edu/vt/ossie/OWDPlugin.java

    r7392 r7437  
    119119                        Properties pythonParams = new Properties(); 
    120120                        pythonParams.setProperty("python.path", 
    121                                         getPluginFolder() + "/WaveDev" 
    122                                         + System.getProperty("path.separator") 
    123                                         + getPluginFolder() + "/PythonSrc" 
    124                                         + System.getProperty("path.separator") 
    125                                         + getPluginFolder()); 
     121                            getPluginFolder() + "/PythonSrc" 
     122                + System.getProperty("path.separator") 
     123                + getPluginFolder() + "/PythonSrc/WaveDev/wavedev" 
     124                + System.getProperty("path.separator") 
     125                + getPluginFolder() 
     126                + System.getProperty("path.separator") 
     127                + getPluginFolder() + "/WaveDev/wavedev"); 
    126128                        pythonParams.setProperty( 
    127129                            "python.home", getPluginFolder() + "/jython2.2.1"); 
     
    132134                        try 
    133135                        { 
    134                                 interpreter.exec( 
    135                                     "from PythonSrc.MainFrameGlue import MainFrameGlue"); 
     136                            // Patch the PythonSrc versions of WaveDev and WaveDev.wavedev 
     137                            // so that Jython will also search the OSSIE dirs, but 
     138                            // we can override OSSIE modules with our own versions 
     139                            // when necessary. 
     140                interpreter.exec( 
     141                    "import WaveDev\n" 
     142                    + "WaveDev.__path__.append('" 
     143                    + getPluginFolder() + "/WaveDev')" 
     144                    // + "\nprint 'WaveDev.__path__ = ', WaveDev.__path__" 
     145                    ); 
     146                interpreter.exec( 
     147                    "import WaveDev.wavedev\n" 
     148                    + "WaveDev.wavedev.__path__.append('" 
     149                    + getPluginFolder() + "/WaveDev/wavedev')" 
     150                    // + "\nprint 'WaveDev.wavedev.__path__ = ', " 
     151                    // + "WaveDev.wavedev.__path__" 
     152                    ); 
     153                interpreter.exec( 
     154                    "from MainFrameGlue import MainFrameGlue"); 
    136155                        } 
    137156                        catch (Exception e)