Menu

Commit [r2589]  Maximize  Restore  History

Fix to bug #7225.

This bug was reported by Alex Hansen at https://gna.org/bugs/index.php?7225.

To enable comprehensible error messages when attempting to execute Modelfree4, the function
'self.test_binary()' was added to the file 'io.py'. This was described in the post located at
https://mail.gna.org/public/relax-devel/2006-09/msg00034.html (Message-id:
<7f080ed10609280917s139d2c2cm9f0edcbd5a9fc04c@...>). The implementation is slightly
different to the post though. Firstly the supplied string corresponding to the binary is tested to
see if the full path has been supplied. If so then the string is tested to see if the file exists
and if the file is executable. Otherwise the file is searched for in the PATH environmental
variable. Point 5 of the post at https://mail.gna.org/public/relax-devel/2006-09/msg00034.html,
testing that the binary is in the current directory was not implemented. The reason is because I
was unable to successfully modify the PATH variable.

Three new RelaxErrors have been created to print out comprehensible messages:
RelaxMissingBinaryError, RelaxNonExecError, and RelaxNoInPathError.

bugman 2006-09-30

changed /1.2/errors.py
changed /1.2/generic_fns/palmer.py
changed /1.2/io.py
/1.2/errors.py Diff Switch to side-by-side view
Loading...
/1.2/generic_fns/palmer.py Diff Switch to side-by-side view
Loading...
/1.2/io.py Diff Switch to side-by-side view
Loading...
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.