mirror of
https://github.com/ciromattia/kcc
synced 2025-12-15 18:56:28 +00:00
fix -o in c2e (#1161)
This commit is contained in:
@@ -922,11 +922,8 @@ def getOutputFilename(srcpath, wantedname, ext, tomenumber):
|
|||||||
if wantedname is not None:
|
if wantedname is not None:
|
||||||
if wantedname.endswith(ext):
|
if wantedname.endswith(ext):
|
||||||
filename = os.path.abspath(wantedname)
|
filename = os.path.abspath(wantedname)
|
||||||
elif os.path.isdir(srcpath):
|
|
||||||
filename = os.path.join(os.path.abspath(options.output), os.path.basename(srcpath) + ext)
|
|
||||||
else:
|
else:
|
||||||
filename = os.path.join(os.path.abspath(options.output),
|
filename = os.path.abspath(wantedname) + ext
|
||||||
os.path.basename(os.path.splitext(srcpath)[0]) + ext)
|
|
||||||
elif os.path.isdir(srcpath):
|
elif os.path.isdir(srcpath):
|
||||||
filename = srcpath + tomenumber + ext
|
filename = srcpath + tomenumber + ext
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user