diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-03 14:39:07 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-03 14:39:07 -0400 |
commit | edf1ccd6ab436c2ab033e1febbe6f91a69abb1fa (patch) | |
tree | 2aa2d9fa04c4d36d120f9959b41f05861f6f948f /src/main.cc | |
parent | 8da771e331792d298a800a19654db42760b0985e (diff) | |
download | fork-ledger-edf1ccd6ab436c2ab033e1febbe6f91a69abb1fa.tar.gz fork-ledger-edf1ccd6ab436c2ab033e1febbe6f91a69abb1fa.tar.bz2 fork-ledger-edf1ccd6ab436c2ab033e1febbe6f91a69abb1fa.zip |
Added a "python" command, which invokes Py_Main
Diffstat (limited to 'src/main.cc')
-rw-r--r-- | src/main.cc | 6 |
1 files changed, 6 insertions, 0 deletions
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: // |