os.path.abspath('.') from your video was what I was looking for thanks and 
disregard the previous long winded reply with error messages etc.

-Steve

On 5/28/2014 8:57 AM, William Stein wrote:
> On Tue, May 27, 2014 at 1:13 PM, Stephen Kauffman
> <strangerl...@gmail.com> wrote:
>> Trying to run a file in a worksheet in sagemathcloud with
>>
>> load('./2014-05-27-151639/SPexample5.sage')
>>
>> but every (seemingly reasonable) path I try bombs with file not found
>>
>> the folder 2014-05-27-151639 is in sagemathcloud and the file 
>> SPexample5.sage is in the folder
>>
>> so what is the path. This info doesn't seem to be anywhere google has taken 
>> me.  Thanks
> 
> This is a puzzling question because every reasonable path works fine
> for me.   You're just using standard  Sage here, and the question
> doesn't have anything to do with SageMathCloud in particular.
> 
> Can you post the exact error message?  You just say "path I try bombs
> with file not found" -- but for all I know it is running your .sage
> file file, and inside *that* there is some sort of path issue.    Did
> you try the simplest case, when your .sage file contains only a single
> line, e.g., "print 'hi'".
> 
> Also, is the .sage file otherwise readable?  Maybe the permissions are
> messed up?
> 
> I've posted a 1-minute video here illustrating creating a folder, a
> worksheet, a file, and loading the file from the worksheet.  It's just
> the natural steps though, so I can't imagine it would be useful:
> 
>    http://youtu.be/Xj5-WKeecns
> 
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to