Permalink
Browse files

Open generated html file with desktop.open.

  • Loading branch information...
1 parent 18a0213 commit d1c3875f2fd640e334832a19b0ede7a18770cf53 @pdaether pdaether committed Apr 13, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 MarkdownBuild.py
View
@@ -3,6 +3,7 @@
import markdown_python
import os
import tempfile
+import desktop
class MarkdownBuild(sublime_plugin.WindowCommand):
@@ -26,4 +27,4 @@ def run(self):
output = tempfile.NamedTemporaryFile(delete=False, suffix='.html')
output.write(html.encode('UTF-8'))
output.close()
- self.window.run_command('open_url', {"url": output.name})
+ desktop.open(output.name)

0 comments on commit d1c3875

Please sign in to comment.