-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__main__.py
More file actions
executable file
·37 lines (29 loc) · 1.15 KB
/
__main__.py
File metadata and controls
executable file
·37 lines (29 loc) · 1.15 KB
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
#!/usr/bin/env python
# chimi: a companion tool for ChaNGa: entry-point script file
# Copyright (C) 2014 Collin J. Sutton
#
# 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 2
# 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.
#
# The GNU General Public License version 2 may be found at
# <http://www.gnu.org/licenses/gpl-2.0.html>.
__author__ = 'Collin J. Sutton'
__copyright__ = 'Copyright (C) 2014 Collin J. Sutton'
__license__ = 'GPLv2'
import os
import sys
_dir = os.path.dirname(os.path.abspath(__file__))
if os.path.isdir(_dir) and os.path.exists(os.path.join(_dir, 'Makefile')):
# Running from the Chimi source directory.
sys.path.insert(0, _dir)
del _dir
import chimi.transient
chimi.transient.import_(__name__, 'chimi.command')
exit(chimi.command.main())