Codebase list sugar-read-activity / b8328eb
Do a symlink instead of a copy from xml to xhtml Gonzalo Odiard 12 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
588588
589589 if filename.endswith('xml'):
590590 dest = filename.replace('xml', 'xhtml')
591 shutil.copy(filename, dest)
591 os.symlink(filename, dest)
592592 self._view.open('file://' + dest)
593593 else:
594594 self._view.open('file://' + filename)