Re: Language module support modified

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Adriaan de Groot wrote:

> On Tue, 30 Sep 2003, Bram Moolenaar wrote:
> > > Like someone else already pointed out, /usr/local is rather
> > > unportable. I presume you mean "the OS-specific place for "extra
> > > software"".
> >
> > And how would Aap find out where that is?
> >
> > I could add a variable in default.aap, but I found one place where the
> > /usr/local/... directory is used without reading it: filetype detection.
> > Perhaps this is something that must be done when installing Aap?
> 
> 
> 	if os == "posix":
> 		if test -d "/opt":
> 			os_local_dir="/opt"
> 		else:
> 			os_local_dir="/usr/local"
> 	else:
> 		os_local_dir="C:/WINDOWS/SYSTEM"
> 
> That's a start, isn't it?

It is a start.  Does "/opt" have preference above "/user/local", when
both exist?

You only mention the start of the path.  The rest can also be different.
Are "/opt/share/aap" and "/usr/local/share/aap" the best defaults?

For MS-Windows I think the "official" location is something like
"C:/Documents and Settings/All Users/Application Data/Aap".  And it's
different depending on the used language...

-- 
CVS sux, men don't like commitment

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.