vext-python / vext

Use system python packages in virtualenv.
MIT License
72 stars 7 forks source link

cannot suppress warning #40

Closed kalikaneko closed 7 years ago

kalikaneko commented 7 years ago

I have vext.pyqt5 installed in my virtualenv, and now I'm getting a warning on every call to a cli program in this virtualenv:

WARNING:vext:Could not add extra path: /usr/share/sip

how can I suppress the warning in a painless way? I tried to configure the logger, but I think because vext plays with the import system this output happens before setting up the logger. any help would be appreciated.

stuaxo commented 7 years ago

The default level should probably be errors, try this fix https://github.com/stuaxo/vext/pull/41 (it's untested, so it might need tweaking)

kalikaneko commented 7 years ago

that does the trick, indeed :) :+1:

stuaxo commented 7 years ago

Cheers for the report, fix will be in next version.