~stefanor/ibid/regexp-595423

« back to all changes in this revision

Viewing changes to scripts/ibid-knab-import

  • Committer: Stefano Rivera
  • Date: 2010-02-16 11:27:55 UTC
  • mfrom: (887.1.4 set-base)
  • Revision ID: stefano@rivera.za.net-20100216112755-njw7pguatq96tidi
Default options['base'] to .
https://code.launchpad.net/~stefanor/ibid/set-base/+merge/19388

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Copyright (c) 2009-2010, Michael Gorven, Stefano Rivera
3
3
# Released under terms of the MIT/X/Expat Licence. See COPYING for details.
4
4
 
 
5
from os.path import dirname
5
6
from sys import argv, path, exit, stderr, stdout
6
7
 
7
8
from chardet import detect
12
13
 
13
14
path.insert(0, '.')
14
15
 
 
16
import ibid
15
17
from ibid.config import FileConfig
16
18
from ibid.db.models import Identity
17
19
from ibid.plugins.seen import Sighting
282
284
    source = unicode(argv[2])
283
285
 
284
286
    if len(argv) > 3:
 
287
        ibid.options['base'] = dirname(argv[3])
285
288
        config = FileConfig(argv[3])
286
289
    else:
287
290
        config = FileConfig('ibid.ini')