maple default dirs

Hello,

can anybody explain-me (or give-me a link about) the Maple default directory configuration. Specially the signification and difference between the terms:

currentdir
homedir (in kernelopts)
UserDirectory (in maplesys.ini file)

Thank-you

Robert Israel's picture

Directories

I think it goes like this.

  currentdir is the command used to check or change the current working directory, the one that procedures such as read and fprintf should use by default.  What this is initially will depend on how Maple is started.  For example, if you launch Maple by clicking on a worksheet file, currentdir() will return the directory containing that file.

  kernelopts(homedir)  is  the user's "home directory".  It is not
possible to change this within Maple.

  UserDirectory in maplesys.ini (on a Windows system) points to the directory where Maple would keep the file maple.ini (and .ini files for various users on a multi-user system).

 

hi and thanks for your

hi and thanks for your comment,

is it possible to establish some dir as default currentdir (independently of how maple is started)?.

How can I know which maple procedures will use currentdir as default directory? Perhaps all of them? If not, what about the others?

what does "home directory" mean in maple context?

thanks again

currentdir at start

can be stated in the maple.ini file.

Robert Israel's picture

home directory

I think all Maple procedures that do file input/output, other than those involving Maple libraries, archives or helpo databases (which would use libname or savelibname) should use currentdir.

I imagine "Home directory" would mean the same thing to Maple that it means to the operating system: in Windows this would be from the environment variables HOMEDRIVE and HOMEPATH.

alec's picture

USERPROFILE

And USERPROFILE combines them.

Alec

clarification

You mean, I presume, for a relative path.  Isn't that the case?  Or maybe that was what you were saying, somewhat obliquely (the "should" confused me).

I think this is sufficient

I think this is sufficient for me at the moment.

Thank-you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}