mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Fix issue with get.py when run in Cygwin (#943)
This commit is contained in:
parent
36c9558b41
commit
daf360dff8
@ -96,7 +96,10 @@ def identify_platform():
|
||||
bits = 32
|
||||
if sys.maxsize > 2**32:
|
||||
bits = 64
|
||||
return arduino_platform_names[platform.system()][bits]
|
||||
sys_name = platform.system()
|
||||
if 'CYGWIN_NT' in sys_name:
|
||||
sys_name = 'Windows'
|
||||
return arduino_platform_names[sys_name][bits]
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Platform: {0}'.format(identify_platform()))
|
||||
|
Loading…
x
Reference in New Issue
Block a user