Skip to content

Commit

Permalink
delete code
Browse files Browse the repository at this point in the history
  • Loading branch information
hamelsmu committed Sep 20, 2024
1 parent 02dfd8d commit aed2886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion nbdev/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ def nbdev_create_config(

# %% ../nbs/api/01_config.ipynb
def _nbdev_config_file(cfg_name=_nbdev_cfg_name, path=None):
return getattr(Config.find(cfg_name), 'config_file', Path.cwd()/cfg_name)
cfg_path = Path.cwd() if path is None else Path(path)
return getattr(Config.find(cfg_name), 'config_file', cfg_path/cfg_name)

# %% ../nbs/api/01_config.ipynb
def _xdg_config_paths(cfg_name=_nbdev_cfg_name):
Expand Down
3 changes: 2 additions & 1 deletion nbs/api/01_config.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,8 @@
"source": [
"#|export\n",
"def _nbdev_config_file(cfg_name=_nbdev_cfg_name, path=None):\n",
" return getattr(Config.find(cfg_name), 'config_file', Path.cwd()/cfg_name)"
" cfg_path = Path.cwd() if path is None else Path(path)\n",
" return getattr(Config.find(cfg_name), 'config_file', cfg_path/cfg_name)"
]
},
{
Expand Down

0 comments on commit aed2886

Please sign in to comment.