diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-13 00:08:27 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2006-06-13 00:08:27 (GMT) |
commit | 6037caa6918ef720a9687f2276ecb70106b672cc (patch) | |
tree | 3249909749c80502e51b17d1674252c23ab9bd96 | |
parent | cdf7583d392c7a3b07607e914216df8b0435f62e (diff) |
Run gtk_main only if it's __main__,
-rwxr-xr-x | sugar/shell/shell.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sugar/shell/shell.py b/sugar/shell/shell.py index 04d2fa0..fae10f8 100755 --- a/sugar/shell/shell.py +++ b/sugar/shell/shell.py @@ -363,10 +363,10 @@ def main(): presence_window.show() console.set_parent_window(activity_container.window) + +if __name__ == "__main__": + main() try: gtk.main() except KeyboardInterrupt: pass - -if __name__ == "__main__": - main() |