How to pass parameter when importing a module?

Bo Peng bpeng at rice.edu
Sun Mar 20 15:04:40 EST 2005


> 
> Take a look at wxPython versioning:
> http://wiki.wxpython.org/index.cgi/MultiVersionInstalls
> 
> The most simple usage looks like
> 
>       import wxversion
>       wxversion.select("2.4")
>       import wx
>   Serge. 
> 

This is essentially my second method: using another module to set 
parameter for myModule. Since wxPython uses this method, I suppose this 
is the standard approach for this problem.

Thanks.
Bo




More information about the Python-list mailing list