mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
windows strikes again
This commit is contained in:
parent
2f90fe68e0
commit
43066d6471
@ -13,7 +13,7 @@
|
|||||||
## with this program; if not, write to the Free Software Foundation, Inc.,
|
## with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
''' E-book management software'''
|
''' E-book management software'''
|
||||||
__version__ = "0.3.73"
|
__version__ = "0.3.74"
|
||||||
__docformat__ = "epytext"
|
__docformat__ = "epytext"
|
||||||
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"
|
||||||
__appname__ = 'libprs500'
|
__appname__ = 'libprs500'
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
import sys, urllib2, time, re, tempfile, os, shutil
|
import sys, urllib2, time, re, tempfile, os, shutil
|
||||||
|
|
||||||
from libprs500 import __appname__
|
from libprs500 import __appname__, iswindows
|
||||||
from libprs500.ebooks.BeautifulSoup import BeautifulStoneSoup
|
from libprs500.ebooks.BeautifulSoup import BeautifulStoneSoup
|
||||||
from htmlentitydefs import name2codepoint
|
from htmlentitydefs import name2codepoint
|
||||||
|
|
||||||
@ -133,8 +133,9 @@ def initialize(profile):
|
|||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
contents = get_contents()
|
contents = get_contents()
|
||||||
print 'done'
|
print 'done'
|
||||||
index = create_aggregator(contents)
|
index = create_aggregator(contents)
|
||||||
profile['url'] = 'file://'+index
|
|
||||||
|
profile['url'] = 'file:'+ ('' if iswindows else '//') +index
|
||||||
|
|
||||||
def finalize(profile):
|
def finalize(profile):
|
||||||
global _tdir
|
global _tdir
|
||||||
|
Loading…
x
Reference in New Issue
Block a user