mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-22 18:49:53 +02:00
Add rebase_file_args()
Since the scripts move their working dir to the script's location
This commit is contained in:
1 parent
dd76d27b56
commit
ead9d1cad9
1 file changed
+4
@@ -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"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user