Menu

#7 Path variables in config file

open
1
2004-10-08
2004-10-08
John Foerch
No

File paths in the config file should be able to include
variables like JJFM_BASEDIR, JJFM_GEODIR, and other
convenient directories. This would make scripts more
portable because they wouldn't rely on relative
pathnames with "..". I suggest that these variables be
indicated by a leading dollar sign like $JJFM_GEODIR.

Discussion

  • John Foerch

    John Foerch - 2004-10-21

    Logged In: YES
    user_id=983545

    I have implemented the basic mechanism for this, along with
    a couple of variables. Namely ${geodir} and ${basedir}.
    Each geolayer has a function that is responsible for parsing
    its config tag. This function now receives a pointer to the
    symbol table. This way, only attributes deemed as "safe"
    can use symbolic variables.

    At the moment, variables that contain paths also contain a
    trailing / character. However, after using this capability,
    it does not look right to me. I may change it before the
    official release of version 14.

     
  • John Foerch

    John Foerch - 2004-10-22

    Logged In: YES
    user_id=983545

    With my repository commit tonight, I have changed the syntax
    of path variables so that they do not include a trailing /.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.