I do this to get my directory a script is in: maindir=:''
maindir=:jpathsep z{.~>:1 i:~'/\' e.~z=.;(4!:4 <'maindir'){4!:3 '' On Mon, May 30, 2022 at 4:46 PM Jinwoo Lee <jinwo...@gmail.com> wrote: > Sorry for the confusion. You're absolutely right. :) > > > On Mon, May 30, 2022 at 3:42 PM chris burke <cbu...@jsoftware.com> wrote: > > > A .jproj file is needed to define a project directory, but it is not > needed > > for folder names. > > > > A folder name is just a shortcut for a directory. If you define a folder > > name for a directory, then after moving the code to another directory, > you > > only need to update the folder name. > > > > On Mon, May 30, 2022 at 3:20 PM Jinwoo Lee <jinwo...@gmail.com> wrote: > > > > > I actually use a slight variation of it. Because J defines '~Projects' > in > > > the default UserFolders_j_, I usually do something like: > > > > > > load '~Projects/myproj/foo.ijs' > > > > > > This works most of the time but if I ever rename the project folder to > > > something else, I'd have to visit all such places and update. And you > > have > > > to add a .jproj file in the project folder to make this work. > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm