Skip to content

Commit

Permalink
Fix issue with get.py when run in Cygwin (esp8266#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Oct 31, 2015
1 parent 36c9558 commit daf360d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit daf360d

Please sign in to comment.