~ubuntu-branches/ubuntu/natty/pygame/natty

« back to all changes in this revision

Viewing changes to test/util/buildpage/upload_results.py

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
import os
2
 
import callproc
3
 
import ConfigParser
4
 
 
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])
11
 
 
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)
15
 
    
 
 
b'\\ No newline at end of file'