Skip to content

Commit

Permalink
fix run_existing_window_command on ST3
Browse files Browse the repository at this point in the history
fix Main.sublime-menu customization in User/SublimeREPL/config/ folder see #216
  • Loading branch information
wuub committed Jul 23, 2013
1 parent f1d48e3 commit 256cc8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_existing_command.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from __future__ import absolute_import, unicode_literals, print_function, division

import os
import os.path
import sys
import json
import codecs
import sublime
import sublime_plugin

Expand Down Expand Up @@ -42,7 +42,7 @@ def _find_cmd(self, id, file):

def _find_cmd_in_file(self, id, file):
try:
if PY2:
if PY2 or os.path.isfile(file):
with open(file) as f:
bytes = f.read()
else:
Expand Down

0 comments on commit 256cc8e

Please sign in to comment.