From a6158bb526c404d34291e56cc3a6e6c696d1b73e Mon Sep 17 00:00:00 2001 From: dobey Date: Tue, 27 Feb 2007 20:18:49 +0000 Subject: 2007-02-27 Rodney Dawes * python/A11yTestUtils.py (a11y_test_init): Update the argument checks to handle values of None, '', or 0 * scripts/realplay.py: Update script to handle initial setup dialogs, by copying the existin realplayerrc to a backup, and back when finished --- python/A11yTestUtils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/A11yTestUtils.py b/python/A11yTestUtils.py index e950d02..a2f7c9f 100644 --- a/python/A11yTestUtils.py +++ b/python/A11yTestUtils.py @@ -134,7 +134,7 @@ def a11y_test_init (programName, argumentList = '', noLaunch = 0, global f ldtp.setlocale ('en_US.UTF-8') - if (logName == ''): + if (logName == '' or logName == None): logName = programName; f = open (logName + '.html', 'w') @@ -145,8 +145,8 @@ def a11y_test_init (programName, argumentList = '', noLaunch = 0, f.write ('') f.write ('\n') f.write ('\n') - if (noLaunch == 0): - if (argumentList != ''): + if (noLaunch == 0 or noLaunch == None or noLaunch == ''): + if (argumentList != '' and argumentList != None and argumentList != 0): launchapp (programName + ' ' + argumentList, 1) else: launchapp (programName, 1) -- cgit v1.2.3