Author: bugman Date: Wed Jul 2 17:45:14 2014 New Revision: 24419 URL: http://svn.gna.org/viewcvs/relax?rev=24419&view=rev Log: MS Windows fixes to allow relax to run again. The code for eliminating the GNU readline ^[[?1034h escape code emission on Linux systems fails on Windows as the 'TERM' environmental variable does not exist in os.environ. Modified: trunk/dep_check.py trunk/relax.py Modified: trunk/dep_check.py URL: http://svn.gna.org/viewcvs/relax/trunk/dep_check.py?rev=24419&r1=24418&r2=24419&view=diff ============================================================================== --- trunk/dep_check.py (original) +++ trunk/dep_check.py Wed Jul 2 17:45:14 2014 @@ -87,7 +87,7 @@ # Readline module (avoiding the damned ^[[?1034h escape code on Linux systems). try: import os - if os.environ['TERM'] == 'xterm': + if 'TERM' in os.environ and os.environ['TERM'] == 'xterm': os.environ['TERM'] = 'linux' import readline readline_module = True Modified: trunk/relax.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax.py?rev=24419&r1=24418&r2=24419&view=diff ============================================================================== --- trunk/relax.py (original) +++ trunk/relax.py Wed Jul 2 17:45:14 2014 @@ -38,7 +38,7 @@ # Eliminate the ^[[?1034h escape code being produced on Linux systems by the import of the readline module. import os -if os.environ['TERM'] == 'xterm': +if 'TERM' in os.environ and os.environ['TERM'] == 'xterm': os.environ['TERM'] = 'linux' # Set up the Python 2 and 3 work-arounds.