"Ian Mallett" <[EMAIL PROTECTED]> wrote: > I was wondering if you can get returns from an executable somehow. > Something like: > > import Objects > def main() > objects = Objects.main() > > and Objects is an .exe file. > Ian >
Yep, the subprocess module makes that easy. Check out http://docs.python.org/lib/module-subprocess.html http://docs.python.org/lib/node537.html You'll be most interested in the returncode attribute. -Dave LeCompte
