Fixed startup for console_script

This commit is contained in:
2010-01-26 17:34:56 +00:00
parent 03824fee6e
commit 162a9ef522
2 changed files with 5 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ license='GPLv2',
py_modules = [ 'tvorganise'],
entry_points = {
'console_scripts':[
'tvorganise = tvorganise:TvOrganiser.main'
'tvorganise = tvorganise:main'
]
},

View File

@@ -210,3 +210,7 @@ class TvOrganiser():
self._logger.info("[*] ..done")
else:
self._logger.warning("Skipping file: %s" % filename)
def main():
t = TvOrganiser()
t.main()