Codebase list sugar-read-activity / 1c1a919
Do not create the symbolic link if already exist We use a symbolic link from the xml file to a xhtml file because webkit is confused with the extension. Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 12 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
592592
593593 if filename.endswith('xml'):
594594 dest = filename.replace('xml', 'xhtml')
595 os.symlink(filename, dest)
595 if not os.path.exists(dest):
596 os.symlink(filename, dest)
596597 self._view.load_uri('file://' + dest)
597598 else:
598599 self._view.load_uri('file://' + filename)