aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim')
-rw-r--r--fg21sim/galactic/snr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py
index 4f3d548..a15159d 100644
--- a/fg21sim/galactic/snr.py
+++ b/fg21sim/galactic/snr.py
@@ -115,7 +115,7 @@ class SuperNovaRemnants:
return
# Create directory if necessary
dirname = os.path.dirname(self.catalog_outfile)
- if os.path.exists(dirname):
+ if not os.path.exists(dirname):
os.mkdir(dirname)
logger.info("Created directory: {0}".format(dirname))
# Save catalog data