Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/sugar-shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-20 20:41:21 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-08-20 20:41:21 (GMT)
commitcc8b8de6902329e30bf2f50d88111f3f18d8b78e (patch)
tree4b83ba2ea28c1441462342fe83bee5363a3c0ebe /shell/sugar-shell
parent03faa64f82a8784b3bcc8f21930fc795c15f6736 (diff)
Fix up syntax errors in sugar-shell
Diffstat (limited to 'shell/sugar-shell')
-rwxr-xr-xshell/sugar-shell10
1 files changed, 6 insertions, 4 deletions
diff --git a/shell/sugar-shell b/shell/sugar-shell
index e7538b3..b2b9622 100755
--- a/shell/sugar-shell
+++ b/shell/sugar-shell
@@ -53,8 +53,8 @@ def _save_session_info():
#
# WARNING!!! this is going away at some near future point, do not rely on it
#
- dsba_file = os.path.join(env.get_profile_path(), "session.info")
- f = open(dsba_file, "w")
+ session_info_file = os.path.join(env.get_profile_path(), "session.info")
+ f = open(session_info_file, "w")
cp = ConfigParser()
cp.add_section('Session')
@@ -118,7 +118,7 @@ def main():
shell = Shell(model)
service = ShellService(shell)
-if name == '__main__':
+if __name__ == '__main__':
# running the gtk.main outside of the main() function allows us to
# profile startup times. To profile startup times replace the following
# call to main with:
@@ -132,4 +132,6 @@ if name == '__main__':
except KeyboardInterrupt:
print 'Ctrl+C pressed, exiting...'
- os.remove(dsba_file)
+ session_info_file = os.path.join(env.get_profile_path(), "session.info")
+ os.remove(session_info_file)
+