R
Robert P. J. Day
finally getting back to clawing my way thru the python 3 book so
probably a number of newbie questions coming up. first one -- can i
check if a module is importable (equivalently, exists on sys.path, i
assume) without trying to import it first?
i can see that i can use try/except and just run "import" -- is that
the accepted way to test?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
probably a number of newbie questions coming up. first one -- can i
check if a module is importable (equivalently, exists on sys.path, i
assume) without trying to import it first?
i can see that i can use try/except and just run "import" -- is that
the accepted way to test?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================