Add rebase_file_args()

Since the scripts move their working dir to the script's location
This commit is contained in:
Jylpah committed 2020-07-10 12:15:54 +03:00
1 parent dd76d27b56
commit ead9d1cad9
1 file changed
+4
+4
View File
@@ -348,6 +348,10 @@ def NOW() -> int:
return int(time.time())
def rebase_file_args(current_dir, files):
"""REbase file command line params after moving working dir to the script's dir"""
return [ os.path.join(current_dir, fn) for fn in files ]
async def read_int_list(filename: str) -> list():
"""Read file to a list and return list of integers in the input file"""