Skip to content

Commit e3f3759

Browse files
committed
Changed console_scripts target to a function
1 parent af147f8 commit e3f3759

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pythonforandroid/toolchain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2828,6 +2828,9 @@ def logcat(self, args):
28282828
directory. All extra args are passed as arguments to logcat.'''
28292829
self.adb(['logcat'] + args)
28302830

2831-
if __name__ == "__main__":
28322831

2832+
def main():
28332833
ToolchainCL()
2834+
2835+
if __name__ == "__main__":
2836+
main()

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def recursively_include(results, directory, patterns):
4949
install_requires=['appdirs', 'colorama>0.3', 'sh', 'jinja2', 'argparse'],
5050
entry_points={
5151
'console_scripts': [
52-
'python-for-android = pythonforandroid.toolchain:ToolchainCL',
53-
'p4a = pythonforandroid.toolchain:ToolchainCL',
52+
'python-for-android = pythonforandroid.toolchain:main',
53+
'p4a = pythonforandroid.toolchain:main',
5454
],
5555
'distutils.commands': [
5656
'bdist_apk = pythonforandroid.bdist_apk:BdistAPK',

0 commit comments

Comments
 (0)