qrpa 1.0.11__tar.gz → 1.0.12__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of qrpa might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "qrpa"
7
- version = "1.0.11"
7
+ version = "1.0.12"
8
8
  description = "qsir's rpa library"
9
9
  authors = [{ name = "QSir", email = "1171725650@qq.com" }]
10
10
  readme = "README.md"
@@ -716,9 +716,8 @@ def download_img_v2(image_url, platform='shein', img_save_path=None):
716
716
  image_dir = Path(f'{os.getenv('auto_dir')}/image')
717
717
  image_dir = os.path.join(image_dir, platform)
718
718
 
719
- # 确保目录存在,如果不存在则创建
720
- if not os.path.exists(image_dir):
721
- os.makedirs(image_dir)
719
+ # 确保目录存在,如果不存在则创建(线程安全)
720
+ os.makedirs(image_dir, exist_ok=True)
722
721
 
723
722
  file_name = os.path.basename(urlparse(image_url).path) # 获取 URL 路径中的文件名
724
723
  file_path = os.path.join(image_dir, file_name) # 拼接文件路径
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qrpa
3
- Version: 1.0.11
3
+ Version: 1.0.12
4
4
  Summary: qsir's rpa library
5
5
  Author: QSir
6
6
  Author-email: QSir <1171725650@qq.com>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes