Config writing, store volume changes. Closes #21

This commit is contained in:
Lartza
2018-06-19 13:43:25 +03:00
parent b30f0d868b
commit db45096944
3 changed files with 12 additions and 1 deletions

View File

@ -66,6 +66,11 @@ def zipdir(zippath, zipname_prefix=None):
return zipname
def write_config():
with open(var.configfile, 'w') as f:
var.config.write(f)
class Dir(object):
def __init__(self, path):
self.name = os.path.basename(path.strip('/'))