mirror of
https://github.com/waydroid/waydroid.git
synced 2026-04-22 16:09:30 -04:00
13 lines
319 B
Python
13 lines
319 B
Python
# Copyright 2021 Oliver Smith
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
import os
|
|
import logging
|
|
import tools.config
|
|
|
|
|
|
def save(args, cfg):
|
|
logging.debug("Save config: " + args.config)
|
|
os.makedirs(os.path.dirname(args.config), 0o700, True)
|
|
with open(args.config, "w") as handle:
|
|
cfg.write(handle)
|