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