You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError(f"Found old settings.ini at {old_cfg}. Please migrate to pyproject.toml using `nbdev_migrate`. See https://nbdev.fast.ai/getting_started.html for details.")
Copy file name to clipboardExpand all lines: nbs/api/01_config.ipynb
+5-9Lines changed: 5 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -340,7 +340,10 @@
340
340
" p = Path(path or Path.cwd()).resolve()\n",
341
341
" for d in [p] + list(p.parents):\n",
342
342
" f = d/pyproject_nm\n",
343
-
" if f.exists() and _has_nbdev(f): return f"
343
+
" if f.exists() and _has_nbdev(f): return f\n",
344
+
" for d in [p] + list(p.parents):\n",
345
+
" if (d/'settings.ini').exists():\n",
346
+
" raise ValueError(f\"Found old settings.ini. Migrate to pyproject.toml using `nbdev_migrate`. See https://nbdev.fast.ai/getting_started.html\")"
344
347
]
345
348
},
346
349
{
@@ -439,10 +442,6 @@
439
442
"\"Return nbdev config.\"\n",
440
443
" cfg_file = _find_nbdev_pyproject(path)\n",
441
444
" if cfg_file is not None:\n",
442
-
" # Check for old settings.ini and complain loudly\n",
443
-
" old_cfg = cfg_file.parent / 'settings.ini'\n",
444
-
" if old_cfg.exists() and not also_settings:\n",
445
-
" raise ValueError(f\"Found old settings.ini at {old_cfg}. Please migrate to pyproject.toml using `nbdev_migrate`. See https://nbdev.fast.ai/getting_started.html for details.\")\n",
0 commit comments