|   | 1 |  initial version  | 
To get the full path of the current directory you can use the os Python module as follows
sage: import os
sage: os.path.abspath(os.curdir)
'/home/thatsme/'
However, there is no such thing such as a Python environment variable to tell you the name of the current worksheet (that I know of). This woud be much simpler within a Python script.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.