-
Notifications
You must be signed in to change notification settings - Fork 28
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
Changing global working directory #44
Comments
Oh, this is definitely the way to go. @Shushman do you want to take a crack at this? |
Yup, on it |
@zsunberg I'm running into an issue with the How do I call I've done argument binding before in Julia but they were typically when the bound method still had some argument to operate on, and I was binding only a subset of arguments. Not sure what to do here :( |
You can create an anonymous function which just needs the directory argument (IIUC). Also you should be using See https://github.com/JuliaLang/julia/blob/master/base/file.jl#L81 |
Sometimes this package has the side effect of changing the current working directory for all of Julia and leaving it changed! 😲 This can result in very hard-to-diagnose unexpected behavior like files the user wanted to save in her directory ending up in this package's temporary working dir.
Of course it's fine to change directories temporarily to run commands, but it is hard to guarantee that it is changed back correctly in all cases. The two-argument version of
cd()
should be used to automatically enforce this. 😃The text was updated successfully, but these errors were encountered: