From edf1ccd6ab436c2ab033e1febbe6f91a69abb1fa Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Mar 2009 14:39:07 -0400 Subject: Added a "python" command, which invokes Py_Main --- src/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index c8917198..6be50910 100644 --- a/src/main.cc +++ b/src/main.cc @@ -50,10 +50,16 @@ namespace { } } +namespace ledger { + extern char * argv0; +} + int main(int argc, char * argv[], char * envp[]) { int status; + argv0 = argv[0]; + // The very first thing we do is handle some very special command-line // options, since they affect how the environment is setup: // -- cgit v1.2.3