Mercurial > libervia-backend
comparison libervia/frontends/quick_frontend/quick_utils.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 26b7ed2817da |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
21 from os.path import exists, splitext | 21 from os.path import exists, splitext |
22 from optparse import OptionParser | 22 from optparse import OptionParser |
23 | 23 |
24 | 24 |
25 def get_new_path(path): | 25 def get_new_path(path): |
26 """ Check if path exists, and find a non existant path if needed """ | 26 """Check if path exists, and find a non existant path if needed""" |
27 idx = 2 | 27 idx = 2 |
28 if not exists(path): | 28 if not exists(path): |
29 return path | 29 return path |
30 root, ext = splitext(path) | 30 root, ext = splitext(path) |
31 while True: | 31 while True: |