Commit a4b5c575 a4b5c5751d9f36c1495f75542aa46417f0db3bbf by Nicolas Perriault

fixed casperjs executable could not handle a PHANTOMJS_EXECUTABLE containing spaces

1 parent 66a880f9
......@@ -10,9 +10,10 @@ def resolve(path):
return resolve(os.readlink(path))
return path
PHANTOMJS_EXEC = os.environ.get('PHANTOMJS_EXECUTABLE', 'phantomjs')
PHANTOMJS_EXEC = os.environ.get('PHANTOMJS_EXECUTABLE', 'phantomjs').split(' ')
CASPER_PATH = os.path.abspath(os.path.join(os.path.dirname(resolve(__file__)), '..'))
CASPER_ARGS = [PHANTOMJS_EXEC, os.path.join(CASPER_PATH, 'bin', 'bootstrap.js'), '--casper-path=%s' % CASPER_PATH, '--cli']
CASPER_ARGS = PHANTOMJS_EXEC
CASPER_ARGS.extend([os.path.join(CASPER_PATH, 'bin', 'bootstrap.js'), '--casper-path=%s' % CASPER_PATH, '--cli'])
CASPER_ARGS.extend(sys.argv[1:])
try:
......