Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

define-runtime-path with directories #2336

Closed
LiberalArtist opened this issue Oct 26, 2018 · 0 comments
Closed

define-runtime-path with directories #2336

LiberalArtist opened this issue Oct 26, 2018 · 0 comments

Comments

@LiberalArtist
Copy link
Contributor

On Slack, @greghendershott suggested to someone that, if you need to use define-runtime-path with several files in the same directory, you might do something like:

(define-runtime-path here ".")
(define a (build-path here "a"))
(define b (build-path here "b"))

I have done this often, but I was never clear on how this pattern interacts with define-runtime-path's function of telling the executable creator which files to include in a distribution. (I've never actually used the executable creator in practice.)

I decided to try an experiment (https://github.com/LiberalArtist/runtime-path-example), and, while the executable creator did package everything needed, I'm not sure its behavior is really desirable: it included everything in the here directory and its recursive sub-directories, including editor backups and the complete contents of the ".git" directory.

Assuming this is the intended behavior, I think it should be mentioned in the documentation. Documenting "The Right Thing" to do for multiple files in the same directory would probably also be good: as I said, I've used the approach @greghendershott suggested a number of times.

@mflatt mflatt closed this as completed in 200a356 Jun 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant