mirror of
https://github.com/ciromattia/kcc
synced 2026-01-21 12:45:43 +00:00
Temporary disabling new location of tmp files
This commit is contained in:
@@ -250,7 +250,6 @@ The app relies and includes the following scripts/binaries:
|
|||||||
####3.2:
|
####3.2:
|
||||||
* Too big EPUB files are now splitted before conversion to MOBI
|
* Too big EPUB files are now splitted before conversion to MOBI
|
||||||
* Added experimental parser of manga webstrips
|
* Added experimental parser of manga webstrips
|
||||||
* Moved location of temporary files to increase conversion speed
|
|
||||||
* Improved error handling
|
* Improved error handling
|
||||||
|
|
||||||
## KNOWN ISSUES
|
## KNOWN ISSUES
|
||||||
|
|||||||
@@ -599,7 +599,8 @@ def genEpubStruct(path):
|
|||||||
|
|
||||||
def getWorkFolder(afile):
|
def getWorkFolder(afile):
|
||||||
if os.path.isdir(afile):
|
if os.path.isdir(afile):
|
||||||
workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.join(os.path.splitext(afile)[0], '..'))
|
workdir = tempfile.mkdtemp('', 'KCC-TMP-')
|
||||||
|
#workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.join(os.path.splitext(afile)[0], '..'))
|
||||||
try:
|
try:
|
||||||
os.rmdir(workdir) # needed for copytree() fails if dst already exists
|
os.rmdir(workdir) # needed for copytree() fails if dst already exists
|
||||||
fullPath = os.path.join(workdir, 'OEBPS', 'Images')
|
fullPath = os.path.join(workdir, 'OEBPS', 'Images')
|
||||||
@@ -616,7 +617,8 @@ def getWorkFolder(afile):
|
|||||||
rmtree(path)
|
rmtree(path)
|
||||||
raise UserWarning("Failed to extract images.")
|
raise UserWarning("Failed to extract images.")
|
||||||
else:
|
else:
|
||||||
workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.dirname(afile))
|
workdir = tempfile.mkdtemp('', 'KCC-TMP-')
|
||||||
|
#workdir = tempfile.mkdtemp('', 'KCC-TMP-', os.path.dirname(afile))
|
||||||
cbx = cbxarchive.CBxArchive(afile)
|
cbx = cbxarchive.CBxArchive(afile)
|
||||||
if cbx.isCbxFile():
|
if cbx.isCbxFile():
|
||||||
try:
|
try:
|
||||||
@@ -688,7 +690,8 @@ def getDirectorySize(start_path='.'):
|
|||||||
|
|
||||||
|
|
||||||
def createNewTome(parentPath):
|
def createNewTome(parentPath):
|
||||||
tomePathRoot = tempfile.mkdtemp('', 'KCC-TMP-', parentPath)
|
tomePathRoot = tempfile.mkdtemp('', 'KCC-TMP-')
|
||||||
|
#tomePathRoot = tempfile.mkdtemp('', 'KCC-TMP-', parentPath)
|
||||||
tomePath = os.path.join(tomePathRoot, 'OEBPS', 'Images')
|
tomePath = os.path.join(tomePathRoot, 'OEBPS', 'Images')
|
||||||
os.makedirs(tomePath)
|
os.makedirs(tomePath)
|
||||||
return tomePath, tomePathRoot
|
return tomePath, tomePathRoot
|
||||||
|
|||||||
Reference in New Issue
Block a user