get-directory in drscheme:unit:frame
The result of this method is used as the initial directory for the user's program to be evaluted in.
( -> (union string #f)send a-drscheme:unit:frame get-directory)
This is the directory that the file is saved in, or the directory DrScheme started up in, if the file has not been saved.