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

Set Electron __directory to that of the cwd of Julia #263

Open
wolfiex opened this issue May 21, 2020 · 2 comments
Open

Set Electron __directory to that of the cwd of Julia #263

wolfiex opened this issue May 21, 2020 · 2 comments

Comments

@wolfiex
Copy link

wolfiex commented May 21, 2020

Currently, the root localhost directory is that of the electron install within the Blink.jl package. It would be useful to have this as the current working directory from which Julia is initiated as this would greatly aid in the reading of unorthodox binary files which may be needed within the code.

@ZHIWEN-PING
Copy link

There is a hack around this:

  1. create an HTML file
  2. loadurl(w, """file:///$(abspath("test.html"))""")

@ludvax
Copy link

ludvax commented Oct 22, 2020

Agree, the root localhost directory is that of the electron install within the Blink.jl package.
I have the same issue when I use load! or loadjs! or loadcss!
In case of load! it's should be use pwd() or something like that ?

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

3 participants