fix setup.py with script

This commit is contained in:
chrys 2016-10-05 20:04:14 +02:00
parent 34808ec737
commit ef71fb385c
2 changed files with 11 additions and 5 deletions

View File

@ -18,11 +18,12 @@ setup(
author_email="chrys87@web.de",
# Packages
packages=find_packages('src/fenrir'),
packages=find_packages('fenrir'),
package_dir={'': 'src/fenrir'},
entry_points = {
"console_scripts": ['fenrir = fenrir:fenrir']
},
scripts=['src/fenrir/fenrir'],
#entry_points = {
# "console_scripts": ['fenrir = fenrir:main']
# },
# Include additional files into the package
include_package_data=True,
@ -46,4 +47,5 @@ setup(
)
print(find_packages())

View File

@ -127,7 +127,11 @@ class fenrir():
time.sleep(0.2) # wait a little before splatter it :)
self.environment = None
if __name__ == "__main__":
def main():
#if __name__ == "__main__":
app = fenrir()
app.proceed()
del app
if __name__ == "__main__":
main()