Skip to content

Commit

Permalink
修复使用相对路径时无法解析d_s_num的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
MinMinGuGu committed Dec 8, 2023
1 parent 9e1517f commit 54bb50f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ def rename(args):


def init_parameter(args):
args.path = os.path.abspath(os.path.join(os.getcwd(), args.path))
args.d_name = Path(args.path).name
args.d_s_num = get_d_s_num(args.path)
args.d_p_name = Path(args.path).parent.name
Expand Down

0 comments on commit 54bb50f

Please sign in to comment.