os.system("ls /")
returns:

bin    dev   initrd.img  media      opt   sage    selinux  sys  var
boot   etc   lib         mnt        proc  sagero  squash   tmp  vmlinuz
cdrom  home  lost+found  nohup.out  root  sbin    srv      usr
0

So I've got no idea how to find C: ???

On May 14, 9:43 am, Robert Bradshaw <[email protected]>
wrote:
> On May 14, 2010, at 9:32 AM, David Grudoski wrote:
>
> > Can anyone tell me how to use os.chdir to go to my C: drive when  
> > running sage in virtual box? I can't get out of the '/home/'  
> > directory.
> > executing the following in sage notebook
> > import os
> > os.chdir('C:')
> > gives an error "No such file or Directory"
>
> > I set C up a a permanent shared folder from the devices menu but  
> > have no idea how to access it from within the virtual boxenvironment.
>
> VirtualBox has its own filesystem completely separate from Windows.  
> Given you set up a permanent shared folder, there's probably a mount  
> point. Does
>
> sage: os.system("ls /")
>
> give anything that looks like it could be your C drive? Someone who  
> actually uses VirtualBox could probably answer better.
>
> - Robert
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to 
> [email protected]
> For more options, visit this group 
> athttp://groups.google.com/group/sage-support
> URL:http://www.sagemath.org

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to