Modified:
tags/robotframework-2.0.4/doc/quickstart/sut/login.py (contents, props
changed)
tags/robotframework-2.0.4/doc/quickstart/testlibs/LoginLibrary.py
Log:
backported fix for running quickstart on windows from trunk
Modified: tags/robotframework-2.0.4/doc/quickstart/sut/login.py
==============================================================================
--- tags/robotframework-2.0.4/doc/quickstart/sut/login.py (original)
+++ tags/robotframework-2.0.4/doc/quickstart/sut/login.py Tue Jan 13
08:03:29 2009
@@ -1,3 +1,5 @@
+#!/usr/bin/env python
+
import sys
import os
import tempfile
Modified: tags/robotframework-2.0.4/doc/quickstart/testlibs/LoginLibrary.py
==============================================================================
--- tags/robotframework-2.0.4/doc/quickstart/testlibs/LoginLibrary.py
(original)
+++ tags/robotframework-2.0.4/doc/quickstart/testlibs/LoginLibrary.py Tue
Jan 13 08:03:29 2009
@@ -5,9 +5,8 @@
class LoginLibrary:
def __init__(self):
- sut_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
- '..', 'sut', 'login.py')
- self._command_prefix = '"%s" "%s" ' % (sys.executable, sut_path)
+ self._sut_path = os.path.join(os.path.dirname(__file__),
+ '..', 'sut', 'login.py')
self._status = ''
def create_user(self, username, password):
@@ -25,7 +24,7 @@
% (expected_status, self._status))
def _run_command(self, command, *args):
- command = '%s %s %s' % (self._command_prefix,
command, ' '.join(args))
+ command = '"%s" %s %s' % (self._sut_path, command, ' '.join(args))
process = os.popen(command)
self._status = process.read().strip()
process.close()