diff -r b11b71aaf864 Modules/posixmodule.c --- a/Modules/posixmodule.c Sat May 21 14:56:53 2016 +0300 +++ b/Modules/posixmodule.c Mon May 23 10:56:13 2016 +0200 @@ -13247,6 +13247,14 @@ } PyModule_AddObject(m, "_have_functions", list); +#ifdef __ANDROID__ + v = Py_True; +#else + v = Py_False; +#endif + Py_INCREF(v); + PyModule_AddObject(m, "is_android", v); + initialized = 1; return m; diff -r b11b71aaf864 Lib/os.py --- a/Lib/os.py Sat May 21 14:56:53 2016 +0300 +++ b/Lib/os.py Mon May 23 12:10:08 2016 +0200 @@ -203,6 +203,13 @@ del _add +if sys.platform == 'win32': + default_shell = 'cmd.exe' +elif _exists('is_android') and is_android: + default_shell = '/system/bin/sh' +else: + default_shell = '/bin/sh' + # Python uses fixed values for the SEEK_ constants; they are mapped # to native constants if necessary in posixmodule.c # Other possible SEEK values are directly imported from posixmodule.c

AltStyle によって変換されたページ (->オリジナル) /