Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

run cmd through sublime

import os, sublime_plugin
class CmdCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        file_name=self.view.file_name()
        path=file_name.split("")
        current_driver=path[0]
        path.pop()
        current_directory="".join(path)
        command= "cd "+current_directory+" & "+current_driver+" & start cmd"
        os.system(command)
Source by www.csestack.org #
 
PREVIOUS NEXT
Tagged: #run #cmd #sublime
ADD COMMENT
Topic
Name
1+7 =