ST> """ May be we should have this behaviour when called with a single file as argument, and/or a command line switch?"""
Following the law of the least surprise, code that does what a human expects would be best. In this case, that means that code that does an upward search for the first parent directory that does NOT contain an __init__.py (starting from the dirname of the single .py file) would be what *I* would expect. ;) Note that the corner case that the .py file is isolated (a script) and not part of a package works too, since then dir containing the script is added. _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
