Now I am writing a small package. I have written several files and put them in the same directory. And some files need to read in or include another file in the same directory. But when I simply write the file name there, Mathematica can not find them. Is there a easy way to keep this portability? Thank for your kindly help!
|
The solution using Here is an alternative method. There are two cases we can distinguish here:
|
|||||||||||
|
|
The solution is to use
Note that |
|||
|
|
|
I use this function that works both to notebooks and scripts:
So you can test your script in the command line and in the notebook. For more advanced implementation I recomend Leonid answer. |
|||
|
|

