Skip to content

Commit

Permalink
log nb.homeDir creation
Browse files Browse the repository at this point in the history
  • Loading branch information
neroist authored Jul 8, 2024
1 parent 08290f3 commit 2020de1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/nimib.nim
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ template nbInit*(theme = themes.useDefault, backend = renders.useHtmlBackend, th
log "filename: " & nb.filename

if nb.cfg.homeDir != "":
log "setting current directory to nb.homeDir: " & $nb.homeDir

if not dirExists(nb.homeDir):
log "creating nb.homeDir: " & $nb.homeDir
createDir(nb.homeDir)

log "setting current directory to nb.homeDir: " & $nb.homeDir

setCurrentDir nb.homeDir

# can be overriden by theme, but it is better to initialize this anyway
Expand Down

0 comments on commit 2020de1

Please sign in to comment.