Skip to content

Current working directory workflow / loading relative files #1301

Answered by josevalim
kevinlang asked this question in Q&A
Discussion options

You must be logged in to vote

I believe __ENV__.file will return the .livemd, so you can set File.cd(Path.dirname(__ENV__.file)). Although in the long term we should support uploads, as that's the best way to ensure it will work on all environments.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@jonatanklosko
Comment options

@kevinlang
Comment options

Answer selected by kevinlang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants