Skip to content

Commit 55972c0

Browse files
committed
Add sys.executable to sys.path for ST2 Windows
1 parent beb96f1 commit 55972c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

advanced_new_file/commands/command_base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
from ..completions.windows_completion import WindowsCompletion
1212

1313
if not IS_ST3:
14+
if PLATFORM == "windows":
15+
import sys
16+
sys.path.append(os.path.dirname(sys.executable))
1417
from ..lib.ushlex import split as st2_shlex_split
1518

19+
1620
VIEW_NAME = "AdvancedNewFileCreation"
1721

1822
class AdvancedNewFileBase(object):

0 commit comments

Comments
 (0)