summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsetup.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 0334c1e9..5ea97cdc 100755
--- a/setup.py
+++ b/setup.py
@@ -106,6 +106,8 @@ setup(name="poezio",
'Screen autoaway plugin': 'pyinotify==0.9.4'})
# Remove the link afterwards
-if exists(join(current_dir, 'src', 'default_config.cfg')):
+if (exists(join(current_dir, 'src', 'default_config.cfg')) and
+ exists(join(current_dir, 'data', 'default_config.cfg'))):
+
unlink(join(current_dir, 'src', 'default_config.cfg'))