mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2026-05-19 20:14:53 -04:00
Change prefix of temporary folders
Shouldn't really use a name that suggests a connection to GitHub.
This commit is contained in:
@@ -21,6 +21,10 @@ v11.4.0
|
|||||||
- We now report on the progress of PDF/A conversion, since this operation is
|
- We now report on the progress of PDF/A conversion, since this operation is
|
||||||
sometimes slow.
|
sometimes slow.
|
||||||
- Improved command line completions.
|
- Improved command line completions.
|
||||||
|
- The prefix of the temporary folder OCRmyPDF creates has been changed from
|
||||||
|
``com.github.ocrmypdf`` to ``ocrmypdf.io``. Scripts that chose to depend on this
|
||||||
|
prefix may need to be adjusted. (This has always been an implementation detail so is
|
||||||
|
not considered part of the semantic versioning "contract".)
|
||||||
|
|
||||||
v11.3.4
|
v11.3.4
|
||||||
=======
|
=======
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ def run_pipeline(options, *, plugin_manager, api=False):
|
|||||||
if not plugin_manager:
|
if not plugin_manager:
|
||||||
plugin_manager = get_plugin_manager(options.plugins)
|
plugin_manager = get_plugin_manager(options.plugins)
|
||||||
|
|
||||||
work_folder = Path(mkdtemp(prefix="com.github.ocrmypdf."))
|
work_folder = Path(mkdtemp(prefix="ocrmypdf.io."))
|
||||||
debug_log_handler = None
|
debug_log_handler = None
|
||||||
if (
|
if (
|
||||||
(options.keep_temporary_files or options.verbose >= 1)
|
(options.keep_temporary_files or options.verbose >= 1)
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ def cached_run(options, run_args, **run_kwargs):
|
|||||||
|
|
||||||
def clean_sys_argv():
|
def clean_sys_argv():
|
||||||
for arg in run_args[1:]:
|
for arg in run_args[1:]:
|
||||||
yield re.sub(r'.*/com.github.ocrmypdf[^/]+[/](.*)', r'$TMPDIR/\1', arg)
|
yield re.sub(r'.*/ocrmypdf[.]io[.][^/]+[/](.*)', r'$TMPDIR/\1', arg)
|
||||||
|
|
||||||
manifest['args'] = list(clean_sys_argv())
|
manifest['args'] = list(clean_sys_argv())
|
||||||
with (Path(CACHE_ROOT) / 'manifest.jsonl').open('a') as f:
|
with (Path(CACHE_ROOT) / 'manifest.jsonl').open('a') as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user