diff options
author | dobey <dobey> | 2007-02-27 20:18:49 +0000 |
---|---|---|
committer | dobey <dobey> | 2007-02-27 20:18:49 +0000 |
commit | a6158bb526c404d34291e56cc3a6e6c696d1b73e (patch) | |
tree | 4dbee8a7d69dc8cfb849acc3ee0c2c98f59ecb9a /python | |
parent | 6597568b9a8255e637c594087155a2eeb12623d9 (diff) |
2007-02-27 Rodney Dawes <dobey@novell.com>
* 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
Diffstat (limited to 'python')
-rw-r--r-- | python/A11yTestUtils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 ('<style type=\"text/css\">@import url(report.css);</style>') f.write ('</head>\n') f.write ('<body>\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) |