I've had nothing but problems with the siutils and the sipyutils.
Especially with

win32com.client.Dispatch('XSI.Application')

but also with the __sipath__

sipyutils.add_to_syspath( __sipath__ )
sipyutils.add_subfolder_to_syspath( __sipath__, 'mysubfolder' )

Maybe it's a linux thing though, but I tend to want to use the normal
python tools to be sure that it's not yet another layer causing errors. Use
it with caution, just as you would use PyMel with caution :)

regards
stefan



On Mon, Feb 4, 2013 at 9:44 PM, Stephen Blair <[email protected]>wrote:

>
> There's also some stuff in siutils / sipyutils
>
> http://download.autodesk.com/global/docs/softimage2013/en_us/sdkguide/files/script_python_WorkingwithCustomPythonModulesinXSI.htm
> http://xsisupport.com/2010/10/24/python-importing-modules-into-plugins/
>
>
>
>
> On 04/02/2013 3:29 PM, Stefan Andersson wrote:
>
> Just to confirm a bit what others has said (with an example)
> [path]
> [mylibs]
>  __init_.py
> coolpython.py
>
> # inside softimage
> import sys
> sys.path.append("/path/mylibs")
> import coolpython
>
> or
> [path]
> [mylibs]
>  __init_.py
> [ coolpython ]
> __init__.py
>
> # inside softimage
> import sys
> sys.path.append("/path/mylibs")
> import coolpython
>
> You might have to also do a reload(coolpython) if you are testing your
> edits.
>
> best of luck
> stefan andersson
>
>
>
> On Mon, Feb 4, 2013 at 8:03 PM, Christian Gotzinger <[email protected]
> > wrote:
>
>> Thank you for all the answers guys! I will see which of these solutions
>> work best for me.
>>
>> Cheers
>>
>> Christian
>>
>
>
>
> --
> *Stefan Andersson | Digital Janitor*
> blog <http://sanders3d.wordpress.com> | showreel<http://vimeo.com/sanders3d>|
> twitter <http://twitter.com/sanders3d> | 
> LinkedIn<http://www.linkedin.com/in/sanders3d>| cell:
> +46-73-6268850 | skype:sanders3d
>
>
>
>


-- 
*Stefan Andersson | Digital Janitor*
blog <http://sanders3d.wordpress.com> | showreel<http://vimeo.com/sanders3d>|
twitter <http://twitter.com/sanders3d> |
LinkedIn<http://www.linkedin.com/in/sanders3d>| cell: +46-73-6268850 |
skype:sanders3d

Reply via email to