Nuke currently uses 2.6.5 btw, not 2.7.

Since it's windows you probably need to set your PYTHONHOME env variable to
your local install.

-deke

On Sunday, September 8, 2013, Fredrik Averpil wrote:

> Hey,
>
> In Nuke, I need to somehow get the path to my *system's* site-packages
> folder. I do not want the Nuke-distributed packages folder.
>
> I've tried to import site; print site.getsitepackages() but that's just
> for python 2.7 (and I'm using python 2.6).
>
> I've also tried
> for envPath in sys.path:
>     if 'site-packages' in envPath:
>         print envPath
>
> As well as from distutils.sysconfig import get_python_lib;
> print(get_python_lib())
>
>
> ...but that just returns Nuke's site-packages folder. Is there no way to
> grab e.g. C:/python26/Lib/site-packages/ from within Nuke?
>
>
>
> // Fredrik
>
>

-- 
-----
Deke Kincaid
Creative Specialist
The Foundry
Mobile: (310) 883 4313
Tel: (310) 399 4555 - Fax: (310) 450 4516

The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to