escape a char for dir

This commit is contained in:
Nikos Kouremenos 2005-08-11 12:39:50 +00:00
parent 2cb711b720
commit 56461d88dc
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ def launch_file_manager(path_to_open):
if command == '': # if no app is configured
return
# we add the path in "" so we have good parsing from shell
path_to_open = path_to_open.replace('"', '\\"')
command = command + ' "' + path_to_open + '" &'
try: #FIXME: when we require python2.4+ use subprocess module
os.system(command)