My motive is "I will give scripts to somebody else and he should
not run the script directly without running the parent script".
Perhaps it should be a module, not a script. Have it protect itself with the usual if __name__ == "__main__"
And of course it gets executed by an import and a call. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list