Skip to content

Commit abdf9b3

Browse files
committed
Correct __main__
1 parent 83dc049 commit abdf9b3

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

num_radix/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,3 @@ def _main():
567567
sleep(1-(local.microsecond/1000000))
568568
else:
569569
parser.print_help()
570-
571-
if __name__ == "__main__":
572-
_main()

num_radix/__main__.py

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env python3
2+
#
3+
# num-radix - Number radix/base encoding, decoding and formatting
4+
#
5+
# Copyright (C) 2017-2018 2sh <contact@2sh.me>
6+
#
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
19+
#
20+
21+
from . import _main
22+
23+
_main()

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setuptools.setup(
99
name="num-radix",
10-
version="1.0.1",
10+
version="1.0.2",
1111

1212
author="2sh",
1313
author_email="contact@2sh.me",

0 commit comments

Comments
 (0)