aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Mason Larobina <mason.larobina@gmail.com>2009-11-03 21:27:02 +0800
committerGravatar Mason Larobina <mason.larobina@gmail.com>2009-11-03 21:27:02 +0800
commitcec85a1e2907ddefbbbe105456d234beeb513bf7 (patch)
tree83096daf6076a84c348395c1c4590c157ac96c65 /examples
parent9d7ae1b21aefac2cf5418667bd150c110bf8932e (diff)
Always convert relative paths to full paths in the EM.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/uzbl/scripts/event_manager.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/data/uzbl/scripts/event_manager.py b/examples/data/uzbl/scripts/event_manager.py
index 9c269c7..dee42c5 100755
--- a/examples/data/uzbl/scripts/event_manager.py
+++ b/examples/data/uzbl/scripts/event_manager.py
@@ -813,7 +813,8 @@ if __name__ == "__main__":
config['verbose'] = True
if options.plugin_dirs:
- plugin_dirs = map(str.strip, options.plugin_dirs.split(':'))
+ plugin_dirs = map(os.path.realpath, map(str.strip,
+ options.plugin_dirs.split(':')))
config['plugin_dirs'] = plugin_dirs
echo("plugin search dirs: %r" % plugin_dirs)
@@ -842,11 +843,11 @@ if __name__ == "__main__":
echo('will auto close.')
if options.pid:
- config['pid_file'] = options.pid
+ config['pid_file'] = os.path.realpath(options.pid)
echo("pid file location: %r" % config['pid_file'])
if options.socket:
- config['server_socket'] = options.socket
+ config['server_socket'] = os.path.realpath(options.socket)
echo("daemon socket location: %s" % config['server_socket'])
if options.daemon: