mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add libprs500-debug executable
This commit is contained in:
parent
cc4ca13393
commit
3d5afec0a8
31
src/libprs500/debug.py
Normal file
31
src/libprs500/debug.py
Normal 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())
|
@ -56,6 +56,7 @@ entry_points = {
|
|||||||
'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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user