~xubuntu-dev/ubuntu-cdimage/xubuntu-base

« back to all changes in this revision

Viewing changes to bin/list-seeds

  • Committer: Stéphane Graber
  • Date: 2015-06-17 21:02:28 UTC
  • Revision ID: stgraber@ubuntu.com-20150617210228-sv2eqrdchhje4zjw
And when we thought we were done...

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import sys
25
25
 
26
26
sys.path.insert(0, os.path.join(sys.path[0], os.pardir, "lib"))
27
 
from cdimage.config import config
 
27
from cdimage.config import Config
28
28
from cdimage.germinate import GerminateOutput
29
29
 
30
30
 
37
37
        parser.error("need Germinate output directory")
38
38
    if len(args) < 2:
39
39
        parser.error("need mode")
 
40
    config = Config()
40
41
    # Smooth out API change for manual calls.
41
42
    if os.path.isfile(args[0]) and os.path.basename(args[0]) == "STRUCTURE":
42
43
        args[0] = os.path.dirname(args[0])