Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

get path of sage script

Hi, I'm trying to cerate a sage script that will print it's location on the disk. the most of classical python solutions for this problem, like using the inspect module, doesn't work - they return me the location of temporary files (the files inside the directory which returned by the function tmp_dir() ) instead of the directory of the source file.

Thank you!