how exactly does import work

Oleg Broytmann phd at phd.russ.ru
Fri Sep 22 05:39:11 EDT 2000


On 22 Sep 2000, Harald Kirsch wrote:
[skip]
> but not for just `flaxubl'.
> 
> This is particularly annoying because htmldoc.py uses `import' to read
> a module. Consequently it is not possible to run it on a file named
> `flaxubl', which does _not_ have a suffix because it is a program to
> be run from the command line ... and those tend to not have suffixes.
> 
> Is there a way to force import of a suffixless file? What would be the
> best way to simulate `import' with `execfile'?

   I think you better fix htmldoc instead of digging up shared libraries
and python modules import.

Oleg.
---- 
     Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.




More information about the Python-list mailing list