From 5eb14d3af08a97e71222a8972996d86e3ceed54b Mon Sep 17 00:00:00 2001 From: volzhs Date: Tue, 24 May 2016 05:25:22 +0900 Subject: [PATCH] fix unexpected char: '\' error on windows error occurred when register additional directory for android module on windows. ### config.py ### ``` def can_build(plat): return plat=="android" def configure(env): if (env['platform'] == 'android'): env.android_add_res_dir("android/res") ``` --- platform/android/SCsub | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/android/SCsub b/platform/android/SCsub index fab8458b260..c8feac8690f 100644 --- a/platform/android/SCsub +++ b/platform/android/SCsub @@ -65,17 +65,17 @@ for x in env.android_java_dirs: gradle_res_dirs_text="" for x in env.android_res_dirs: - gradle_res_dirs_text+=",'"+x+"'" + gradle_res_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_aidl_dirs_text="" for x in env.android_aidl_dirs: - gradle_aidl_dirs_text+=",'"+x+"'" + gradle_aidl_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_jni_dirs_text="" for x in env.android_jni_dirs: - gradle_jni_dirs_text+=",'"+x+"'" + gradle_jni_dirs_text+=",'"+x.replace("\\","/")+"'" gradle_asset_dirs_text=""