Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-03-13 18:02:02 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-13 18:02:02 (GMT)
commite7c988caec5c5264571b0a4f1f8fde2fc43c4130 (patch)
tree68aa5d01b752045c3196a1cd42fcf009a9b20a29
parent6c1d173f7bbd419d4a30430bf05e2cd23c00b2f2 (diff)
Use home directory, not Documents
-rw-r--r--XbookActivity.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/XbookActivity.py b/XbookActivity.py
index 43e8f01..4845e02 100644
--- a/XbookActivity.py
+++ b/XbookActivity.py
@@ -25,16 +25,11 @@ from sugar.activity import activity
from xbooktoolbar import XbookToolbar
-DOCUMENTS_DIR = os.path.join(os.path.expanduser("~"), "Documents")
-
class XbookActivity(activity.Activity):
def __init__(self, handle):
activity.Activity.__init__(self, handle)
self._document = None
- if not os.path.exists(DOCUMENTS_DIR):
- os.makedirs(DOCUMENTS_DIR)
-
logging.debug('Starting xbook...')
self.set_title(_('Read Activity'))
@@ -78,7 +73,7 @@ class XbookActivity(activity.Activity):
chooser = gtk.FileChooserDialog(_("Open a document to read"), \
buttons=(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk.STOCK_OK, gtk.RESPONSE_ACCEPT))
chooser.set_filter(filt)
- chooser.set_current_folder(DOCUMENTS_DIR)
+ chooser.set_current_folder(os.path.expanduser("~"))
resp = chooser.run()
fname = chooser.get_filename()
chooser.hide()