[omniORB] additional omniidl command-line option

Rene Jager renej.frog at yucom.be
Fri Nov 14 20:39:12 GMT 2003


I hope it's not too late...
can the following extra command-line argument be added to omniidl python
backend? 

-------------------
This patch add an extra option extern to the Python back-end to set
packages for generated *_idl.py files/modules. Example: 
        omniidl -bpython -Wbstubs=Test_stubs -Wbextern=CosNaming -Wbextern=MyFile:mystubs Test.idl
    
which allows to provide the stubs directory for that file. If the file
Test.idl includes CosNaming.idl and the -Wbstubs option is used, then
CosNaming_idl is imported by "import Test_stubs.CosNaming_idl" which is
probably not what you want. Using the "-Wbextern=CosNaming" option the
import statement will be "import CosNaming_idl". Using an additional
":PKG" one can set a package. In the example above the option
"-Wbextern=MyFile:mystubs" will result in "import mystubs.MyFile_idl"
instead of "import Test_stubs.MyFile_idl"
-------------------

diff is attached

renej
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniORBpy-2.1-extern.diff
Type: text/x-patch
Size: 2819 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20031114/c8064413/omniORBpy-2.1-extern.bin


More information about the omniORB-list mailing list