Author: semor Date: Wed Jul 30 18:13:00 2008 New Revision: 7030 URL: http://svn.gna.org/viewcvs/relax?rev=7030&view=rev Log: Changed the location of the temporary directory creation command. This change now avoids relax from crashing on Windows when the directory does not exist and follows a post by Ed at: https://mail.gna.org/public/relax-devel/2008-07/msg00047.html (message ID: 7f080ed10807291455k1d11d51fpdb2382806e55efdb@xxxxxxxxxxxxxx). Note that the directory separators are fine in Windows using the current syntax ('/'). Also, note that this change is temporary as the temporary directory should be placed in an user accessible location and created as proposed by Ed in a post at: https://mail.gna.org/public/relax-devel/2008-07/msg00048.html (message ID: 7f080ed10807291507x5b6aab2fv820a6fc219fc7e2b@xxxxxxxxxxxxxx). Modified: 1.3/test_suite/system_tests/palmer.py 1.3/test_suite/system_tests/scripts/palmer.py Modified: 1.3/test_suite/system_tests/palmer.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/palmer.py?rev=7030&r1=7029&r2=7030&view=diff ============================================================================== --- 1.3/test_suite/system_tests/palmer.py (original) +++ 1.3/test_suite/system_tests/palmer.py Wed Jul 30 18:13:00 2008 @@ -27,7 +27,7 @@ # relax module imports. from data import Relax_data_store; ds = Relax_data_store() -from relax_io import test_binary +from relax_io import mkdir_nofail, test_binary class Palmer(TestCase): @@ -41,6 +41,9 @@ # Create the data pipe. self.relax.interpreter._Pipe.create('palmer', 'mf') + + # Create a temporary directory for ModelFree4 outputs. + mkdir_nofail(sys.path[-1] + '/test_suite/system_tests/data/temp_palmer') def tearDown(self): Modified: 1.3/test_suite/system_tests/scripts/palmer.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/palmer.py?rev=7030&r1=7029&r2=7030&view=diff ============================================================================== --- 1.3/test_suite/system_tests/scripts/palmer.py (original) +++ 1.3/test_suite/system_tests/scripts/palmer.py Wed Jul 30 18:13:00 2008 @@ -4,8 +4,6 @@ from os import chdir import sys -# relax module imports. -from relax_io import mkdir_nofail # Set the stage of analysis. # @@ -123,8 +121,7 @@ # Set the run name (also the name of a preset model-free model). runs = ['m1', 'm2', 'm3'] -# Create a temporary directory for ModelFree4 outputs and move into it. -mkdir_nofail(sys.path[-1] + '/test_suite/system_tests/data/temp_palmer') +# Move to the temporary directory. chdir(sys.path[-1] + '/test_suite/system_tests/data/temp_palmer') # Run the stages.