refactor: update target_files to use absolute path instead of basename in zhconv.py
This commit is contained in:
parent
287d2e1a0c
commit
7ff2e94059
|
|
@ -30,7 +30,7 @@ def main():
|
||||||
|
|
||||||
if os.path.isfile(input_arg):
|
if os.path.isfile(input_arg):
|
||||||
target_dir = os.path.dirname(input_arg)
|
target_dir = os.path.dirname(input_arg)
|
||||||
target_files = [os.path.basename(input_arg)]
|
target_files = [input_arg]
|
||||||
elif os.path.isdir(input_arg):
|
elif os.path.isdir(input_arg):
|
||||||
target_dir = input_arg
|
target_dir = input_arg
|
||||||
target_files = None
|
target_files = None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue