On 11/7/12 2:43 PM, rych wrote:
> Thanks Jason,
> On our installation I can use the folder named '/home/sageservice/tmp/'
> to save my data to from one worksheet and access it from another or a
> different program. Is there a better path that is
> permanent, user-specific, is readable by other programs, and has a nice
> natural name, e.g, /home/sageservice/tmp/<username>? If not I'll make
> one within each worksheet, but then I need to know that <username>.
> Igor
Okay, that makes sense. I don't know of a natural way to have a
per-user directory that exists outside of the notebook. I don't know of
a good way to get the user name from within code running in the
worksheet. However, here's a bad way (i.e., a way that might break
unpredictably in the future if we change implementations): parse the
username out of the DATA string inside the notebook. Then create
directories like you mention above.
Thanks,
Jason