Add libprs500-debug executable

This commit is contained in:
Kovid Goyal 2008-03-18 19:50:49 +00:00
parent cc4ca13393
commit 3d5afec0a8
2 changed files with 33 additions and 1 deletions

31
src/libprs500/debug.py Normal file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env python
## Copyright (C) 2008 Kovid Goyal kovid@kovidgoyal.net
## 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.
##
## You should have received a copy of the GNU General Public License along
## with this program; if not, write to the Free Software Foundation, Inc.,
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
'''
Embedded console for debugging.
'''
import sys
def main(args=sys.argv):
from IPython.Shell import IPShellEmbed
ipshell = IPShellEmbed()
ipshell()
return 0
if __name__ == '__main__':
sys.exit(main())

View File

@ -55,7 +55,8 @@ entry_points = {
'isbndb = libprs500.ebooks.metadata.isbndb:main', 'isbndb = libprs500.ebooks.metadata.isbndb:main',
'librarything = libprs500.ebooks.metadata.library_thing:main', 'librarything = libprs500.ebooks.metadata.library_thing:main',
'mobi2oeb = libprs500.ebooks.mobi.reader:main', 'mobi2oeb = libprs500.ebooks.mobi.reader:main',
'lrf2html = libprs500.ebooks.lrf.html.convert_to:main', 'lrf2html = libprs500.ebooks.lrf.html.convert_to:main',
'libprs500-debug = libprs500.debug:main',
], ],
'gui_scripts' : [ 'gui_scripts' : [
__appname__+' = libprs500.gui2.main:main', __appname__+' = libprs500.gui2.main:main',