~ubuntu-branches/ubuntu/natty/moin/natty-updates

« back to all changes in this revision

Viewing changes to MoinMoin/script/moin.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonas Smedegaard
  • Date: 2008-06-22 21:17:13 UTC
  • mfrom: (0.9.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080622211713-fpo2zrq3s5dfecxg
Tags: 1.7.0-3
Simplify /etc/moin/wikilist format: "USER URL" (drop unneeded middle
CONFIG_DIR that was wrongly advertised as DATA_DIR).  Make
moin-mass-migrate handle both formats and warn about deprecation of
the old one.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    a sub-command.
6
6
 
7
7
    Usage: moin cmdmodule cmdname [options]
8
 
               
9
 
    @copyright: 2006 by Thomas Waldmann
 
8
 
 
9
    @copyright: 2006 MoinMoin:ThomasWaldmann
10
10
    @license: GNU GPL, see COPYING for details.
11
11
"""
12
12
 
13
13
def run():
14
 
    from MoinMoin.script import _util
15
 
    _util.MoinScript().run(showtime=0)
16
 
    
 
14
    from MoinMoin.script import MoinScript
 
15
    MoinScript().run(showtime=0)
 
16
 
17
17
if __name__ == "__main__":
18
18
    # Insert the path to MoinMoin in the start of the path
19
19
    import sys, os
20
 
    sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir))
 
20
    # we use position 1 (not 0) to give a config dir inserted at 0 a chance
 
21
    # beware: we have a wikiconfig.py at the toplevel directory in the branch
 
22
    sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir)))
21
23
 
22
24
    run()
23
25