Changes to instance naming:
[mdk.git] / mdk.py
1 #!/usr/bin/env python
2 # -*- coding: utf-8 -*-
3
4 """
5 Moodle Development Kit
6
7 Copyright (c) 2013 Frédéric Massart - FMCorz.net
8
9 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22 http://github.com/FMCorz/mdk
23 """
24
25 """
26 This file executes MDK as a package.
27
28 It is intended to be used by those who are not using MDK as a package,
29 they can make this file executable and execute it directly.
30
31 Is also provides backwards compatibility to those who had set up MDK manually
32 by cloning the repository and linked to mdk.py as an executable.
33
34 Please note that using this method is not advised, using `python -m mdk` or the
35 executable installed with the package is recommended.
36 """
37
38 import runpy
39 a = runpy.run_module('mdk', None, '__main__')