Skip to content

Commit

Permalink
change tmp txt extension
Browse files Browse the repository at this point in the history
  • Loading branch information
thejohnhoffer committed Mar 5, 2021
1 parent d9b5b42 commit dfbcbf9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@ def save_mask_tiles(self, filename, mask_params, logger, tile_size, level, tx, t

def get_empty_path(path):
basename = os.path.splitext(path)[0]
return pathlib.Path(f'{basename}.tmp.txt')
return p.rename(p.with_suffix('.tmp.txt'))
return pathlib.Path(f'{basename}_tmp.txt')

for image_params in mask_params['images']:

Expand Down

0 comments on commit dfbcbf9

Please sign in to comment.