Back to index

moin  1.9.0~rc2
moin.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding: iso-8859-1 -*-
00003 """
00004     MoinMoin - "moin" is the main script command and calls other stuff as
00005     a sub-command.
00006 
00007     Usage: moin cmdmodule cmdname [options]
00008 
00009     @copyright: 2006 MoinMoin:ThomasWaldmann
00010     @license: GNU GPL, see COPYING for details.
00011 """
00012 
00013 def run():
00014     from MoinMoin.script import MoinScript
00015     MoinScript().run(showtime=0)
00016 
00017 if __name__ == "__main__":
00018     # Insert the path to MoinMoin in the start of the path
00019     import sys, os
00020     # we use position 1 (not 0) to give a config dir inserted at 0 a chance
00021     # beware: we have a wikiconfig.py at the toplevel directory in the branch
00022     sys.path.insert(1, os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), os.pardir, os.pardir)))
00023 
00024     run()
00025