mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
import.py: use pathlib and support Windows
This commit is contained in:
parent
7ddcbb3e80
commit
d6eece6395
6 changed files with 175 additions and 153 deletions
|
|
@ -978,6 +978,8 @@ build_cont = re.compile(r'^[ \t]')
|
|||
|
||||
|
||||
def write_metadata(metadatapath, app):
|
||||
# TODO: Remove this
|
||||
metadatapath = str(metadatapath)
|
||||
if metadatapath.endswith('.yml'):
|
||||
if importlib.util.find_spec('ruamel.yaml'):
|
||||
with open(metadatapath, 'w') as mf:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue