[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Problem in accessing relative filenames | C-API
- From: Patrick Rapin <toupie300@...>
- Date: Tue, 31 May 2011 14:38:01 +0200
> Is there is any alternate way of making luaL_loadfile & luaL_dofile enforce relative path-names ?
If you set the current working directory of your application with for
example chdir("/path/to/mydir/") on the C side, you can of course load
files relatively to that directory.
But this is not as flexible as a search path.