L
Luca
Hi all. I'm trying to do something with python import but isn't working for me.
Using python 2,5 I've a program structured like this:
* a main module called (for example) "mommy" with an __init__.py and a
file called "mommy.py"
* a __version__ var defined inside the main __init__.py
my problem is that the file is called like the module.
Anyone can point me to the solution?
Using python 2,5 I've a program structured like this:
* a main module called (for example) "mommy" with an __init__.py and a
file called "mommy.py"
* a __version__ var defined inside the main __init__.py
really not able to do this! I fear this is a very stupid task to do...From the mommy.py file I need to import the __version__ var, but I'm
my problem is that the file is called like the module.
Anyone can point me to the solution?