diff cagou/core/platform_/android.py @ 398:a5457241c17f

android: fixed tmp dir creation if parents don't exist, avoiding a crash.
author Goffi <goffi@goffi.org>
date Sun, 09 Feb 2020 23:47:29 +0100
parents c7f1176cd2a9
children 71f51198478c
line wrap: on
line diff
--- a/cagou/core/platform_/android.py	Sun Feb 09 23:47:29 2020 +0100
+++ b/cagou/core/platform_/android.py	Sun Feb 09 23:47:29 2020 +0100
@@ -89,7 +89,7 @@
         # we reset tmp dir on each run, to be sure that there is no residual file
         if self.tmp_dir.exists():
             shutil.rmtree(self.tmp_dir)
-        self.tmp_dir.mkdir(0o700)
+        self.tmp_dir.mkdir(0o700, parents=True)
 
     def on_initFrontendState(self):
         # XXX: we use a separated socket instead of bridge because if we