sinkuri256 / android-scripting

Automatically exported from code.google.com/p/android-scripting
0 stars 0 forks source link

Change working directory to scratch directory on SD card #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When open file(path is './filepath'), it will open the file '/./filepath'.
The function os.getcwd() returned '/', and I want to see '/sdcard/ase/scripts'.

Although I can set it by os.chdir(), the current behavior is not suitable.

Original issue reported on code.google.com by qsp...@gmail.com on 27 Nov 2009 at 6:59

GoogleCodeExporter commented 9 years ago
In general, you should never rely on the current working directory without 
checking 
it. However, I agree it would be nice to have the cwd set to something other 
than /.

Original comment by damonkoh...@gmail.com on 5 Dec 2009 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@gmail.com on 1 Mar 2010 at 12:45

GoogleCodeExporter commented 9 years ago
Changed cwd to /sdcard/sl4a in sl4a_r4x

Original comment by rjmatthews62 on 19 Feb 2011 at 2:33

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 28fd0c9978.

Original comment by rjmatthews62 on 19 Feb 2011 at 2:41