[vmchecker-dev] relative imports
Lucian Adrian Grijincu
lucian.grijincu at gmail.com
Fri Mar 19 02:47:53 EET 2010
I haven't been able to figure out whether relative imports are the way
the imports should be done inside a library, or some workarround/hack
I didn't understand.
The most unpleasant thing about relative imports is the impossibility
or running that module as a script (the import fails), so we can't use
«if __name__ == "__main__"» to write simple tests :(
http://docs.python.org/tutorial/modules.html
http://www.python.org/dev/peps/pep-0328/
--
.
..: Lucian
More information about the vmchecker-dev
mailing list