LumaPictures / usd-qt

Reusable Qt Components for Pixar's USD
Other
153 stars 41 forks source link

How does that package live with Pixar's one ? #19

Closed akrilfx closed 5 years ago

akrilfx commented 5 years ago

Hello guys, I'm wondering how do you integrate that package in your pipeline since it has the same name as Pixar's one ? Do you Monkey Patch the original one ? Do you exclusively use UsdQt.py and UsdQtEditors.py ? thanks. Erwann.

csaez commented 5 years ago

Hi @akrilfx,

The package declares a namespace on pxr's init module: https://github.com/LumaPictures/usd-qt/blob/master/pxr/__init__.py

More details here: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#namespace-package-support

chadrik commented 5 years ago

More details here as well: https://docs.python.org/2/library/pkgutil.html

One caveat is that I believe UsdQt needs to be before Usd on the PYTHONPATH

On Mon, Oct 1, 2018 at 8:14 AM Cesar Saez notifications@github.com wrote:

Hi @akrilfx https://github.com/akrilfx,

The package declares a namespace on pxr's init module: https://github.com/LumaPictures/usd-qt/blob/master/pxr/__init__.py

More details here:

https://setuptools.readthedocs.io/en/latest/pkg_resources.html#namespace-package-support

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LumaPictures/usd-qt/issues/19#issuecomment-425945279, or mute the thread https://github.com/notifications/unsubscribe-auth/AAD3E24rEd-vccdA3gTXBKVRMqJfvYhgks5ugjFVgaJpZM4XBqqU .

akrilfx commented 5 years ago

thanks guys, that definitely help ! Indeed the path order on PYTHONPATH is quite important.