Tarek Ziadé wrote:

In that case, if we want to keep a configparser-compatible file, we
need to find another
way to express these if/else parts, which will probably lead to a
complex, non natural
syntax.

Maybe the conditions could be expressed in the
section headers?

[requires platform="linux"]
...

[requires platform="win32"]:
...

Then it's not so much if-then-else logic as just
tagging parts of the file with conditions under
which they apply.

--
Greg
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to