Skip to content

Commit

Permalink
modify the README
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhewei committed Apr 2, 2016
1 parent 070d9bf commit 80c36c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ Each application follows:
// "file" - file name, same as $FILE$
// "proj" - project directory, same as $PROJ$
// "none" - nothing: if args use variables, "type" must be "none"
"type": ""
// default is "none"
"type": "",
// the style of revoking:
// "true" means we don't need wait for the run result
// "false" means wait until the run result printed in console
// default is "true"
"async": "true"
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions runapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def run(self, app = "", args = [], type = "", async = "true"):

try:
if sublime.platform() == 'osx':
proc = subprocess.Popen(['open', '-a', app] + args + [target])
proc = subprocess.Popen(['open', '-a', app] + args + [target], stdout=subprocess.PIPE)
elif sublime.platform() == 'linux':
proc = subprocess.Popen([app] + args + [target])
proc = subprocess.Popen([app] + args + [target], stdout=subprocess.PIPE)
else:
# windows uses string because of CreateProcess()
exec_s = ' '.join(['"'+app+'"'] + args + [target])
Expand Down

0 comments on commit 80c36c6

Please sign in to comment.