-
-
Save name-k/23f21788b9267a76c780 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sublime, sublime_plugin, os, subprocess | |
class ConemuCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
if os.name == "nt": | |
startupinfo = subprocess.STARTUPINFO() | |
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW | |
process = subprocess.Popen(('c:/Program Files (x86)/ConEmu/ConEmu.exe', '/single', self.view.file_name()), | |
stdin=subprocess.PIPE, stdout=subprocess.PIPE, startupinfo=startupinfo) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment