Fix --working-directory. Closes LP #552497
This commit is contained in:
parent
01ca7c5c69
commit
14e4b4d3fe
|
@ -108,7 +108,7 @@ WM_WINDOW_ROLE property on the window')
|
||||||
else:
|
else:
|
||||||
err('OptionParse::parse_options: %s does not exist' %
|
err('OptionParse::parse_options: %s does not exist' %
|
||||||
options.working_directory)
|
options.working_directory)
|
||||||
sys.exit(1)
|
options.working_directory = ''
|
||||||
|
|
||||||
if options.layout is None:
|
if options.layout is None:
|
||||||
options.layout = 'default'
|
options.layout = 'default'
|
||||||
|
|
|
@ -1061,6 +1061,11 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||||
details[1]))
|
details[1]))
|
||||||
command = 'telnet %s %s' % (details[0], 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:
|
if type(command) is list:
|
||||||
shell = util.path_lookup(command[0])
|
shell = util.path_lookup(command[0])
|
||||||
args = command
|
args = command
|
||||||
|
|
Loading…
Reference in New Issue