X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/waydroid.git/blobdiff_plain/eef036b3f814a9fc4869ebfe6c9d2bd51fa19f26..c766c33ca6f63c00cff28b9057b6775c73b8795f:/tools/__init__.py diff --git a/tools/__init__.py b/tools/__init__.py index 13a6110..cdb5cdd 100644 --- a/tools/__init__.py +++ b/tools/__init__.py @@ -36,7 +36,8 @@ def main(): print('ERROR: WayDroid is not initialized, run "waydroid init"') return 0 elif os.geteuid() == 0 and args.action == "init": - os.mkdir(args.work) + if not os.path.exists(args.work): + os.mkdir(args.work) else: args.log = "/tmp/tools.log"