  | | | pythonwin ide and com tlb files | pythonwin ide and com tlb files 2005-03-17 - By Jerry Gamache
Back The %SUMATRAPATH% stuff in the tlb is our way of supporting multiple versions of XSI on the same machine without having to create a brand new registry entry for each one of them.
You can use this method if you don't want to constantly modify your registry:
1) Create a folder for the TLB files: C:\> mkdir C:\Python24\TLBStore 2) Copy all Softimage TLB files there: C:\> copy C:\Softimage\XSI_4.2\Application\bin\*.tlb C:\Python24\TLBStore 3) Start PythonWin in that folder: C:\> cd \Python23\TLBStore C:\Python23\TLBStore> E:\Python24\Lib\site-packages\pythonwin\Pythonwin.exe
PythonWin will look in the current folder for the TLB files and will find them, allowing you to MakePy and browse at will.
You will probably want to create a new shortcut for PythonWin\Soft in the start menu and specify "C:\Python23\TLBStore" for the "Start in" folder.
Please do not copy the TLB files to any location in your %PATH% environment variable (especially winnt\system32). This will lead to very serious and hard to debug problems the next time you install a version of XSI because stale tlb files will get loaded instead of the correct ones.
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)]On Behalf Of Brad Friedman Posted At: Thursday, March 17, 2005 10:28 AM Posted To: xsi Conversation: pythonwin ide and com tlb files Subject: pythonwin ide and com tlb files
I'm following Bernard's advice from a while ago and taking a look at Python for XSI scripting. I'm particularly excited about importing the COM type libraries into the Pythonwin IDE and getting some code completion help from the IDE. I think this should work fine... except that in the COM browser, all the softimage type libaries show up with a note "si3dobjectmodel.tlb can not be loaded" or the like on them.
In the registry, I've noticed that they are set up without absolute paths and such... so I thought perhaps using the following batch file would help.
C:\Softimage\XSI_4.2\Application\bin\setevt.bat Pythonwin.exe
but it doesn't seem to help at all.
In other IDEs for other languages I've had to point tlb importing programs to the absolute path of the tlb files in order to get a proper import. But Pythonwin doesn't seem to have that capability.
I've contemplated hand hacking the regsitry to substitute absolute paths but I'm warry.
Has anyone gotten this to work? I'd really love to be able to properly import the com libraries into the IDE so I can get the benefits of code completion and all the other features.
-brad --- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
--- Unsubscribe? Mail Majordomo@(protected) with the following text in body: unsubscribe xsi
|
|
 |