Ask Your Question
1

Where does save( , '') save to?

asked 2018-04-06 09:35:58 -0600

standardtrickyness gravatar image

Sorry if this is a stupid question but where to does save( , '') go to? how do I find the file location?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
3

answered 2018-04-06 10:00:49 -0600

slelievre gravatar image

updated 2018-04-06 12:47:14 -0600

It saves to your current location, or "present working directory".

You can find this location with the command "pwd".

For example, if my username is "user" and I am working in a folder called "myproject", I might get:

sage: pwd
/home/user/myproject/

This directory us usually the place you launched Sage from.

Additionally, at least for certain types of objects, such as graphic animations, you can do

sage: a.save('filename', show_path=True)

so that the full path to the saved file is shown when saving the object to a file.

edit flag offensive delete link more

Comments

Thanks, when I do pwd however it gives me u'/home/h34sun' when my folder path should be C:\Users\h34sun would you happen to know why it does this?

standardtrickyness gravatar imagestandardtrickyness ( 2018-04-08 21:32:11 -0600 )edit
slelievre gravatar imageslelievre ( 2018-04-09 07:13:27 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-04-06 09:35:58 -0600

Seen: 91 times

Last updated: Apr 06