Question: Home directory path

Hello Mapleprime members

 

I am having an issue with a Maple script I have written that reads in a separate Maple script at the start of the code which deals with regular Jacobian transformations I apply to the problem and got tired writing it each time so externalised it and read it in each time.

On Maple 2015 on my Mac there is nothing wrong with the script and it runs without issue.

 

When I run it on Maple 17 on my linux machine It says the read in file does not exist and the only difference between both machines is the home directory path. (or perhaps version of Maple, but I have used thew following commands in older Maple versions)

 

The Maple script has this at the top:

cwd:=currentdir():

home:=getenv("HOME");
Expspath:=cat(home,"Pathway to the file to be read in");
currentdir(Expspath);

I am simply getting Maple to find the home directory and apply it to the start of the file path which i thought would universally work between machines, and allow the running of Maple scripts between operating systems.

When I run the program on the linux Maple 17, printing Expspath from above gives  exactly where the file is located as it finds the home directory correctly and uses the correct filepath, it just says it does not exist. is there something obvious I am missing?

The Maple file to be read in is on Dropbox so just after the home directory is /Dropbox. If that makes any difference. In both instances the file path is where the file is located (exact match) but the mac will read in the file and linux says it does not exist even though it is the correct filepath.

 

Any help would be appreciated

 

- Yeti

 

Please Wait...