From 0c0e32bb2301b63d2cc3adcb8470ba9a7a49991f Mon Sep 17 00:00:00 2001 From: nineven Date: Sun, 31 Jan 2021 16:07:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fir_ser/api/utils/app/iossignapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fir_ser/api/utils/app/iossignapi.py b/fir_ser/api/utils/app/iossignapi.py index 537cb0e..48f23ab 100644 --- a/fir_ser/api/utils/app/iossignapi.py +++ b/fir_ser/api/utils/app/iossignapi.py @@ -213,8 +213,8 @@ class AppDeveloperApiV2(object): profile_obj = apple_obj.create_profile(bundle_obj.id, auth.get('certid'), provisionName.split("/")[-1]) if profile_obj: n = base64.b64decode(profile_obj.profileContent) - if not os.path.isdir(os.path.basename(provisionName)): - os.makedirs(os.path.basename(provisionName)) + if not os.path.isdir(os.path.dirname(provisionName)): + os.makedirs(os.path.dirname(provisionName)) with open(provisionName, 'wb') as f: f.write(n) return True, profile_obj.profileContent