Hi Brett,

On Sat, Aug 15, 2009 at 2:07 AM, brettpim<br...@math.carleton.ca> wrote:
>
> One more:
>
> I am sunning sage in ~/Projects/SAGE/sage-4.1 which is the root of the
> source tarball.  as per
> http://www.sagemath.org/doc/tutorial/programming.html#loading-and-attaching-sage-files,
> I created 'example.sage' in this directory and loaded and attached
> it.  contrary to the tutorial, no file named 'example.sage.py' was
> created in this directory.   No such file exists anywhere in my home
> directory tree, ~/.

The generated Python file can be found under the hidden directory

$HOME/.sage

Say I have a file /home/mvngu/example.sage with the following content

print "Hello World"
print 2^3

and I load that file using Sage:

----------------------------------------------------------------------
| Sage Version 4.1.1, Release Date: 2009-08-14                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
sage: load "/home/mvngu/example.sage"
Hello world
8


Provided that I don't quit Sage yet, the generated Python file that I got was

/home/mvngu/.sage/temp/sage.math.washington.edu/10199/_home_mvngu_example_sage_0.py

That file would disappear once I quit Sage. I have opened an
enhancement ticket for the tutorial. You can track the issue at ticket
#6752

http://trac.sagemath.org/sage_trac/ticket/6752

-- 
Regards
Minh Van Nguyen

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to