Welcome, Guest
Username: Password: Remember me

TOPIC: Force-create options variable

Force-create options variable 2 years 9 months ago #38958

Hi,

For some setup combinations, compiling failed on my Debian platform because I did not define options in the cfg (just did not need it). Even though compile_telemac.py has a statement "options = parser.parse_args()", it seems that if there is just no "options" keyword in the cfg, the "options" variable may remain undefined in some sections of the script, which leads to a compiling error. For troubleshooting, would it be a possibility to implement something like "if not os.environ.get("options"): options = []" in a future release?

On a side note, currently I just always add an empty "options:" list in the cfg to avoid the issue.

Best,
Sebastian
The administrator has disabled public write access.

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.