diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index 585bd50ea60671de4caeb0ac126d5667151f1c52..bead5ee712c6e29a036403f2c18131fac4bfeb02 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -182,7 +182,10 @@ class ImportData(Operator):
             f = open(os.path.join(getPresetpaths()[0], self.filename), 'r')
         except (FileNotFoundError, IOError):
             f = open(os.path.join(getPresetpaths()[1], self.filename), 'r')
-        settings = f.readline()
+        # Find the first non-comment, non-blank line, this must contain preset text (all on one line).
+        for settings in f:
+            if settings and (not settings.startswith("#")):
+                break
         f.close()
         # print(settings)
         settings = ast.literal_eval(settings)