Skip to main content

files and directories - Analogue of NotebookDirectory[] for scripts (to get the directory path of my script.m)?


Is there a way to get the script directory from inside a Mathematica script?


I want a function analogue to NotebookDirectory[] (which doesn't work for scripts). Is there a way to do this?





Comments