Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Open generated html file with desktop.open.

  • Loading branch information...
commit d1c3875f2fd640e334832a19b0ede7a18770cf53 1 parent 18a0213
@pdaether pdaether authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  MarkdownBuild.py
View
3  MarkdownBuild.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.