Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/copy-from-journal5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/copy-from-journal b/bin/copy-from-journal
index 2db06a5..457e9ff 100755
--- a/bin/copy-from-journal
+++ b/bin/copy-from-journal
@@ -101,11 +101,12 @@ if __name__ == "__main__":
outext = sugar.mime.get_primary_extension(mimetype)
if outext == None:
outext = "dsobject"
+ outext = '.' + outext
# Lastly, actually copy the file out of the datastore and onto the
# filesystem.
- shutil.copyfile(dsentry.get_file_path(), outroot + '.' + outext)
- print '%s -> %s' % (dsentry.get_file_path(), outroot + '.' + outext)
+ shutil.copyfile(dsentry.get_file_path(), outroot + outext)
+ print '%s -> %s' % (dsentry.get_file_path(), outroot + outext)
# Cleanup.
dsentry.destroy()