Jump to content
reepblue

A Bin Folder

Recommended Posts

Recently updated to the 4.4 beta, and saw the massive amounts of additional dlls needed to run the executable. Perhaps move the dlls. so, and executable to a Bin folder and set the working directory to "../".

Anyone can do this now with the professional edition by adding this to the main function:

FileSystem::SetDir("../");

 

The issue comes when launching from the editor. Not a major issue, but the file directory would look nicer. Maybe something to consider in LE5.

Share this post


Link to post

This would certainly be nice, however it'd make the need for the project manger to add PATH variables for windows users to the project's bin folder. Simply putting it beside the exe makes it much easier for Windows to find.

With Lua you can add search directories to require, etc by modifying package.cpath. When mollifying this ! represents the working directory of the project and ? represents what you type into require. I.E in: !\\Bin\\? when require("test") is ran

! would be the working directory. (Generally the exe's directory.)

? would be "test"

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...