5
def scp(local_path, remote_file = None):
6
if remote_file == None:
7
remote_file = os.path.split(local_path)[1]
8
config_file = "./config/upload.ini"
9
config_data = ConfigParser.SafeConfigParser()
10
config_data.read([config_file])
12
file_vars = {"local_path":local_path, "remote_file":remote_file}
13
command = config_data.get("DEFAULT", "scp", vars = file_vars)
14
callproc.ExecuteAssertSuccess(command)
b'\\ No newline at end of file'