aboutsummaryrefslogtreecommitdiff
path: root/src/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.py')
-rwxr-xr-xsrc/config.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/config.py b/src/config.py
index b59f79d..bd2366f 100755
--- a/src/config.py
+++ b/src/config.py
@@ -134,8 +134,13 @@ def write_theme(tmp_config,theme):
f.close()
-def apply(config_file,theme):
+def apply(config_file,theme,dry=False):
tmp=extract(config_file)
write_theme(tmp,theme)
- shutil.move(tmp,config_file)
+ f=open(tmp,mode="r")
+ new_config=f.read()
+ f.close()
+ if not(dry):
+ shutil.move(tmp,config_file)
+ return(new_config)