The ~folder convention needs understanding:

in Unix, it is   ~/folder/...   that refers to HOME folder, where as 
    in J it is   ~folder/...    that refers to special aliases-folders

(tilde is prepended directly to folder name).

You should always use '~folder' and not 'folder'.
It is resolved automatically to absolute path by
some verbs like load'' and require'', but will
need explicit jpath'' for other cases, e.g.

  fread jpath'~user/folder/file.ext'

I keep all my J scripts and libraries inside the
~user folder, which is always next to the j60x folder,
so that I don't lose anything during syncing and migration.

In Unix, this is under $HOME: ~/j602, ~/j602-user or
~/j602, ~/j602/user. In Windows, it is on D:\Folder\... .
I don't put important stuff in Program Files or 
My Documents, etc.


--- June Kim <[EMAIL PROTECTED]> wrote:

> 2008/2/11, Oleg Kobchenko <[EMAIL PROTECTED]>:
> > I use ~user/ for single-files scripts and
> 
> Thanks, but...
> 
> You mean the c:\j601\user folder, not the os user's path(which is
> conventionally shortened to ~username in *nix), right?
> 
> Suppose there is a file name "foobar.ijs" in ~user folder. These two works:
> 
>    load 'user/foobar.ijs'
>    load '~user/foobar.ijs'
> 
> What's the difference and which one's preferable?
> 
> > ~user/folder1/, ~user/folder2/ etc for larger
> > libraries with resource files etc.
> >
> > Then you sync the user folder between installations
> > and computers.
> >
> > It's better to put the actual code under ~user folder(s)
> > and the load'...' statement in ~user/config/startup.ijs
> >
> > For GUI apps you may want to create F-key shorcuts,
> > which also load'...' from ~user folder(s).
> >
> >
> > --- June Kim <[EMAIL PROTECTED]> wrote:
> >
> > > Hello,
> > >
> > > In my user\config\startup.ijs script, I load a couple of my own
> > > libraries to the global space for my convenience. One of them is, for
> > > example, a unit conversion library I wrote.
> > >
> > > I have no problem at all, but I wonder where is the "conventional"
> > > place for putting such ijs scripts.
> >
> >
> >
> >      
> > ____________________________________________________________________________________
> > Never miss a thing.  Make Yahoo your home page.
> > http://www.yahoo.com/r/hs
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to