Added tool, process_path.py for processing a path.
This commit is contained in:
25
tools/process_path.py
Normal file
25
tools/process_path.py
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/env python3
|
||||
"""
|
||||
Processes a path
|
||||
"""
|
||||
|
||||
# Import
|
||||
import argparse
|
||||
import util
|
||||
|
||||
|
||||
def main(args):
|
||||
"""
|
||||
Main function
|
||||
"""
|
||||
|
||||
print(util.process_path(args.input, args.input_dir), end="")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="`mkraw_exe` wrapper")
|
||||
parser.add_argument("input", type=str)
|
||||
parser.add_argument("--input-dir", dest="input_dir", type=str, required=True)
|
||||
|
||||
args = parser.parse_args()
|
||||
main(args)
|
||||
Reference in New Issue
Block a user