Skip to content

Commit daf360d

Browse files
committed
Fix issue with get.py when run in Cygwin (#943)
1 parent 36c9558 commit daf360d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/get.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ def identify_platform():
9696
bits = 32
9797
if sys.maxsize > 2**32:
9898
bits = 64
99-
return arduino_platform_names[platform.system()][bits]
99+
sys_name = platform.system()
100+
if 'CYGWIN_NT' in sys_name:
101+
sys_name = 'Windows'
102+
return arduino_platform_names[sys_name][bits]
100103

101104
if __name__ == '__main__':
102105
print('Platform: {0}'.format(identify_platform()))

0 commit comments

Comments
 (0)