To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9551
9550  |  9552
Subject: 
Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 3 Mar 2004 01:37:47 GMT
Viewed: 
6292 times
  
In lugnet.cad.dev, Michael Lachmann wrote:
I'm talking on file level now, I still would prefer the syntax like style of
HIDE and SHOW but we can also see it as an
option in which case I would take them into brackets.
So if it is easier or better when using in environment variables go for it -
but we should get them equally processed in variables and files.

The data contained in either environment variables or ini files
should have exactly the same format.

Quotation marks should not be necessay if we use the < >.

You are right but I still would allow them for the rare case of blanks at
the end of a directory name.

Trailing blanks are preserved in both env var and ini files.
So I still don't think quotation marks are necessary...

In the week end I plan to write a small library (in C) for reading the env • vars and LDraw.ini's
to set up the directories. I'll also write an LDrawSetup application with • a GUI for editing LDraw.ini.
All open source, if you want to save the effort yourself.
/Lars



I will have to write it myself - MLCad is not open source!

I didn't mean open source in the GPL way.
The library is free to use with no ties - other than I would like to be notified
if you make any changes/corrections, so I can update it.
Actually I hope you will all use it, so we get the exact same behaviour in all programs.
An LDraw code repository...

I'm almost done writing the library and the LDrawSetup application.
I want the library to be as simple as possible to use.
Reading the env vars and ini files is platform independent,
only the hunt for ini files goes into #ifdef's.

I think having ldraw.ini in LDRAWDIR is contradictory, the hen and egg problem.
To keep thing simple I would like to have only *one* ldraw.ini,
and since we're going to have it in HOME/USERPROFILE/windir anyway to find the LDRAWDIR,
I don't see any reason to spread it out.

The hunt for ldraw.ini could be:
Windows:
%LDRAWINI%
%USERPROFILE%\ldraw.ini
%ALLUSERSPROFILE%\ldraw.ini
%windir%\ldraw.ini

Unix:
$LDRAWINI
$HOME/.ldrawrc
$HOME/ldraw.ini
/etc/ldraw.ini

Mac:
plist or like Unix?

/Lars



Message has 2 Replies:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
(...) I agree, and prefer <> around all tags. (...) Ah, but what about leading blanks. ;^) Nevermind, I don't think you can create an absolute path that starts with leading blanks. (...) But wait. The reason given for looking in LDRAWDIR is for a (...) (21 years ago, 3-Mar-04, to lugnet.cad.dev)
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
"Lars C. Hassing" <sp.lars@am.hassings.dk> schrieb im Newsbeitrag news:Htz996.1H4@lugnet.com... (...) style of (...) it - (...) What I said ;-) <SNIP> (...) env (...) with (...) notified (...) all programs. (...) That sound interesting - any way I (...) (21 years ago, 3-Mar-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDRAWPREDIRS LDRAWPOSTDIRS - additional search paths
 
Ok I hop on again ... "Lars C. Hassing" <sp.lars@am.hassings.dk> schrieb im Newsbeitrag news:Htnz7B.G2z@lugnet.com... (...) located (...) directories, (...) (URL) However, I suggest section name [LDrawSearch] which is more in line with [LDraw]. I (...) (21 years ago, 1-Mar-04, to lugnet.cad.dev)

132 Messages in This Thread:
(Inline display suppressed due to large size. Click Dots below to view.)
Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR