diff --git a/setup.py b/setup.py index 3bac274..0d62011 100644 --- a/setup.py +++ b/setup.py @@ -44,9 +44,9 @@ def read(fname): ENTRY_POINTS = { "console_scripts": [ - "pdf-merge = skm_pyutils.py_pdf:cli_entry", - "dir-list = skm_pyutils.py_path:cli_entry", - "copy-files = skm_pyutils.py_path:cli_copy_files_in_dir", + "pdf-merge = skm_pyutils.pdf:cli_entry", + "dir-list = skm_pyutils.path:cli_entry", + "copy-files = skm_pyutils.path:cli_copy_files_in_dir", ] } diff --git a/skm_pyutils/path.py b/skm_pyutils/path.py index ad81d2f..e19b29e 100644 --- a/skm_pyutils/path.py +++ b/skm_pyutils/path.py @@ -424,7 +424,7 @@ def cli_copy_files_in_dir(): os.makedirs(parsed.output_directory, exist_ok=True) for fname in files: - output_loc = os.path.join(parsed.output_directory, fname) + output_loc = os.path.join(parsed.output_directory, fname.replace(os.sep, "--")) input_loc = os.path.join(parsed.input_directory, fname) if parsed.move: shutil.move(input_loc, output_loc)