From 31f197869ded8d540bce9c7721b0cd5c1b3e56fe Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Thu, 5 May 2016 15:59:41 +0200 Subject: [PATCH] adding expandvars to upload path --- pupy/modules/upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pupy/modules/upload.py b/pupy/modules/upload.py index 5f6ae7ea..7971ee01 100644 --- a/pupy/modules/upload.py +++ b/pupy/modules/upload.py @@ -15,6 +15,6 @@ class UploaderScript(PupyModule): self.arg_parser.add_argument('local_file', metavar='', completer=path_completer) self.arg_parser.add_argument('remote_file', metavar='') def run(self, args): - upload(self.client.conn, args.local_file, args.remote_file) + upload(self.client.conn, args.local_file, self.client.conn.modules['os.path'].expandvars(args.remote_file)) self.success("file local:%s uploaded to remote:%s"%(args.local_file, args.remote_file))