diff options
author | Danilo Cesar Lemes de Paula <danilo.eu@gmail.com> | 2010-03-25 15:12:13 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-03-25 15:12:13 +0200 |
commit | b6f2aae48fa41440f47d3bab7b395679d4d7735d (patch) | |
tree | 1ce7f2ee38d05e8c47e3cbea0a5bce4ca80bf679 | |
parent | 42605450b02df3a798b5ab46707ae08237b88397 (diff) | |
download | obexd-b6f2aae48fa41440f47d3bab7b395679d4d7735d.tar.gz |
Add relative path support to send-files
Agent should receive the absolute path as it runs on a different CWD
-rwxr-xr-x | test/send-files | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/send-files b/test/send-files index 6481836..b8af864 100755 --- a/test/send-files +++ b/test/send-files @@ -2,6 +2,7 @@ import gobject +import os import sys import time import dbus @@ -64,7 +65,8 @@ if __name__ == '__main__': agent = Agent(bus, path) mainloop = gobject.MainLoop() + files = [os.path.realpath(f) for f in sys.argv[2:]] - client.SendFiles({ "Destination": sys.argv[1] }, sys.argv[2:], path) + client.SendFiles({ "Destination": sys.argv[1] }, files, path) mainloop.run() |