From 964f1383003d606f7596d3e509acd90e75b5ffca Mon Sep 17 00:00:00 2001 From: elgris Date: Thu, 14 May 2015 18:25:50 +0300 Subject: [PATCH] Support of Cygwin environment 'cygwin' is windows-related kind of platform that should be treated by cocos console. When you try to use thee console in cygwin it usually says `There isn't any available platforms` which is not true. Related question: http://stackoverflow.com/questions/27594348/cocos2d-there-isnt-any-available-platforms-error --- bin/cocos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cocos.py b/bin/cocos.py index f056898a..697d7abb 100644 --- a/bin/cocos.py +++ b/bin/cocos.py @@ -593,7 +593,7 @@ def convert_rules(rules): def os_is_win32(): - return sys.platform == 'win32' + return sys.platform == 'win32' or sys.platform == 'cygwin' def os_is_32bit_windows():