diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-02-16 18:16:55 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-02-16 18:16:55 +0000 |
| commit | 93ea4c4d2ea2b1ff3dfee40fb114f3080001e4ce (patch) | |
| tree | 54ea05bc7ac6a01a92695370933ab8805c2a0fdc /src/python.hh | |
| parent | 16a952c35dd15d52b304abaf9c366e9263b45430 (diff) | |
supply more information about errors when running scripts
Diffstat (limited to 'src/python.hh')
| -rw-r--r-- | src/python.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python.hh b/src/python.hh index 8c383904..f1d701a8 100644 --- a/src/python.hh +++ b/src/python.hh @@ -231,7 +231,8 @@ typedef void (*EventCallback)(EventData*, void*); void python_init(char *argv0); void python_destroy(); -bool python_exec(const std::string &path); +//! Returns 0 for success, 1 for failing to open the file, 2 for an exception +int python_exec(const std::string &path); #endif // SWIG |
