diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-10 23:00:48 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-08-10 23:00:48 (GMT) |
commit | 82c2f8e52ca185c0e8f0c5fa39e9eb292e0a39b5 (patch) | |
tree | 873494d756add8e64411f95de27a2a5dd5bdfa93 | |
parent | ef1a70dbf67a33d3149d57e6403c27188049e183 (diff) |
Get the test pdf from the home dir
-rw-r--r-- | XbookActivity.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/XbookActivity.py b/XbookActivity.py index 7806479..d994080 100644 --- a/XbookActivity.py +++ b/XbookActivity.py @@ -1,3 +1,5 @@ +import os + import gtk import evince @@ -13,7 +15,7 @@ class XbookActivity(Activity): self.add(scrolled) scrolled.show() - test_file = 'file:///home/manu/Desktop/OLPC.pdf' + test_file = 'file://' + os.path.expanduser('~/test.pdf') view = evince.View() document = evince.factory_get_document(test_file) |