Arc Forumnew | comments | leaders | submitlogin
4 points by akkartik 460 days ago | link | parent

Whoa, I could have sworn I responded to this one :/

rocketnia is right that I tend to just run Arc from within its directory, keeping it alongside any Arc program I may be working on at the moment. As a result, I'd kinda always assumed you could run it from anywhere and find yourself in the Arc directory once you loaded up. Now I find this isn't the case:

  $ pwd
  $ ./anarki/
  arc> ($:current-directory)
This was initially surprising, but of course we're only parameterizing the current directory while loading libraries:

I'm not sure what to do about this. In addition to rocketnia's `current-load-file*` suggestion, should we just expose `arc-path` from boot.scm? I couldn't immediately see how to get to it from Arc.