System:getcwd() or whatever

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
jimjamjahaa
Posts: 17
Joined: Mon Oct 03, 2005 5:00 am

System:getcwd() or whatever

Post by jimjamjahaa »

how do you return the current working directory. need it in case people have it in a different dircetory :)

thx
Dark Killer
Posts: 32
Joined: Tue Jan 25, 2005 3:10 am

Post by Dark Killer »

System.currentDirectory()
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Re: System:getcwd() or whatever

Post by Shine »

jimjamjahaa wrote:need it in case people have it in a different dircetory :)
Usually you don't need it, because all file access is relative to the script file.
jimjamjahaa
Posts: 17
Joined: Mon Oct 03, 2005 5:00 am

Post by jimjamjahaa »

relative you say? how handy....
Post Reply