From e4bf4af9baf893b7da26bcac6230f90372ec584b Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Thu, 17 Nov 2016 15:07:39 +0800 Subject: [PATCH] mkdir if it does not exist --- make/prepare | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make/prepare b/make/prepare index b2ec7254f..107f65405 100755 --- a/make/prepare +++ b/make/prepare @@ -175,6 +175,8 @@ delfile(config_dir) if protocol == "https": target_cert_path = os.path.join(cert_dir, os.path.basename(cert_path)) + if not os.path.exists(target_cert_path): + os.makedirs(target_cert_path) shutil.copy2(cert_path,target_cert_path) target_cert_key_path = os.path.join(cert_dir, os.path.basename(cert_key_path)) shutil.copy2(cert_key_path,target_cert_key_path)