[TriLUG] OT: beginner python question, what does "import" do

Joseph Mack NA3T jmack at wm7d.net
Thu Aug 4 14:43:45 EDT 2005


On Thu, 4 Aug 2005, jonc wrote:

> Opps, forgot to answer the actual question... Start up Python with
>  python -vvv
>
> Then import the module. It will tell exactly were it is getting the
> module from. :-)

thanks. It's not quite as simple as an include file then. I get
an so file for "import gtk" and a short text file for "import dbus"
which itself imports dbus_bindings.

I just was hoping that I'd be able to tell if "import foo" would go by
looking at likely filenames

Thanks Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml 
Homepage http://www.austintek.com/ It's GNU/Linux!



More information about the TriLUG mailing list