From c8fdb76b349a1d60ab5b6017d5d90b79d1d4ea4b Mon Sep 17 00:00:00 2001 From: lichaojun Date: Sun, 13 Oct 2024 21:22:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 6 +++--- py-src/config.py | 10 +++++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/config/index.js b/config/index.js index bccbdd1..f636b17 100644 --- a/config/index.js +++ b/config/index.js @@ -10,11 +10,11 @@ const config = { * 则直接使用inputDir作为工作目录 */ inputDir: '', + // inputDir: 'E:/商品资料汇总/商品资料(1051-1100)/ppt1056-研究生复试', // 指定要查找的目录 - directoryPath: 'E:/商品资料汇总/商品资料(1101-1150)', + directoryPath: 'E:/商品资料汇总/商品资料(1151-1200)', // 要转换的文件个数, 0表示全部转换 - rangeNum: 20, - // directoryPath: 'C:/Users/Administrator/Desktop/测试', + rangeNum: 0, // rangeNum: 3, }, // 裁剪商品封面图 diff --git a/py-src/config.py b/py-src/config.py index 87d4d50..876c471 100644 --- a/py-src/config.py +++ b/py-src/config.py @@ -1,13 +1,17 @@ import os - class Config: - RANGE_NUM: int = 20 - WORK_PATH = "E:/商品资料汇总/商品资料(1101-1150)" + RANGE_NUM: int = 100 + WORK_PATH = "E:/商品资料汇总/商品资料(1151-1200)" # WORK_PATH = "C:/Users/Administrator/Desktop/测试" + + INPUT_PATH = "" + # INPUT_PATH = "E:/商品资料汇总/商品资料(1101-1150)/ppt1135-世界海洋日" @staticmethod def get_latest_folder(base_directory): + if Config.INPUT_PATH is not None and Config.INPUT_PATH != "": + return Config.INPUT_PATH folders = [ os.path.join(base_directory, d) for d in os.listdir(base_directory)