Wolfram: Get Script Path, Notebook Dir

By Xah Lee. Date: . Last updated: .

Get file path of running script

$InputFileName
the file path of the current running script.

Get Dir Path of Current Notebook

NotebookDirectory[]
the directory of the current notebook.

Wolfram. Package, Load File