~james-w/pkgme-devportal/remove-tempdir-after-use

« back to all changes in this revision

Viewing changes to devportalbinary/backends/pdf/package_name

  • Committer: Tarmac
  • Author(s): James Westby, James Westby
  • Date: 2011-12-13 12:53:41 UTC
  • mfrom: (18.2.3 pdf-backend)
  • Revision ID: tarmac@server-3224-20111213125341-z46ucgmzy632jnte
[r=jml] Add a pdf backend.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
# Copyright 2011 Canonical Ltd.  This software is licensed under the
 
3
# GNU Affero General Public License version 3 (see the file LICENSE).
 
4
 
 
5
import json
 
6
from devportalbinary.binary import (
 
7
    METADATA_FILE,
 
8
    PACKAGE_NAME,
 
9
    )
 
10
 
 
11
 
 
12
def main():
 
13
    with open(METADATA_FILE) as f:
 
14
        metadata = json.load(f)
 
15
    print metadata[PACKAGE_NAME]
 
16
 
 
17
 
 
18
if __name__ == '__main__':
 
19
    main()