Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro dev(pkg)
- quote
- using $pkg
- cd(joinpath(dirname(pathof($pkg)), ".."))
- end
- end
- function restart()
- startup = """
- Base.ACTIVE_PROJECT[]=$(repr(Base.ACTIVE_PROJECT[]))
- Base.HOME_PROJECT[]=$(repr(Base.HOME_PROJECT[]))
- cd($(repr(pwd())))
- """
- cmd = `$(Base.julia_cmd()) -ie $startup`
- atexit(()->run(cmd))
- exit(0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement