Fix --working-directory. Closes LP #552497

This commit is contained in:
Chris Jones 2010-03-31 14:02:55 +01:00
parent 01ca7c5c69
commit 14e4b4d3fe
2 changed files with 6 additions and 1 deletions

View File

@ -108,7 +108,7 @@ WM_WINDOW_ROLE property on the window')
else:
err('OptionParse::parse_options: %s does not exist' %
options.working_directory)
sys.exit(1)
options.working_directory = ''
if options.layout is None:
options.layout = 'default'

View File

@ -1061,6 +1061,11 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
details[1]))
command = 'telnet %s %s' % (details[0], details[1])
if options and options.working_directory and \
options.working_directory != '':
self.set_cwd(options.working_directory)
options.working_directory = ''
if type(command) is list:
shell = util.path_lookup(command[0])
args = command