Skip to content

Commit 93a59f7

Browse files
committed
Merge pull request #8 from efritz-corvisa/master
Fix broken git-bash link in build.py on windows.
2 parents c2f5384 + 044eeed commit 93a59f7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

build.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import platform
2727
import sublime
2828
import sublime_plugin
29-
3029
from subprocess import Popen
3130

3231
SUMMIT_PLUGIN_PATH = os.path.split(os.path.abspath(__file__))[0]
@@ -51,8 +50,13 @@ def build(self, opts=[]):
5150
"Unable to determine operating system or platform '{0}' not supported.".format(self.platform))
5251
return
5352

53+
if self.platform != 'windows':
54+
bash = 'bash'
55+
else:
56+
bash = os.path.expanduser("~\\AppData\\Local\\Programs\\Git\\git-bash.exe")
57+
5458
cmd = [
55-
'bash',
59+
bash,
5660
"{}{}simulate_{}.sh".format(SUMMIT_PLUGIN_PATH, os.path.sep, self.platform),
5761
self.build_path,
5862
self.SUMMIT_SETTINGS.get("summit_simulator_host", "code.corvisacloud.com"),

0 commit comments

Comments
 (0)