5ae5a2d4af15e570a74bc4541ac153ad12cddec5,PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py,,,#,26
Before Change
// at runtime. :)
//
// If we need to rewrite it...
if not is_win:
// To permit string munging, decode the encoded bytes output by
// this command (i.e., enable the "universal_newlines" option).
// Note that:
//
// On Fedora, the default loaders cache is /usr/lib64, but the
// libdir is actually /lib64. To get around this, we pass the
// path to the loader command, and it will create a cache with
// the right path.
cachedata = exec_command_stdout(gdk_pixbuf_query_loaders,
*loader_libs)
cd = []
prefix = """ + os.path.join(libdir, "gdk-pixbuf-2.0", "2.10.0")
plen = len(prefix)
// For each line in the updated loader cache...
for line in cachedata.splitlines():
if line.startswith("//"):
continue
if line.startswith(prefix):
line = ""@executable_path/" + cachedest + line[plen:]
cd.append(line)
cachedata = u"\n".join(cd)
// Write the updated loader cache to this file.
with open_file(cachefile, "w") as fp:
fp.write(cachedata)
// Else, GdkPixbuf will do the right thing on Windows, so no changes
// to the loader cache are required. For efficiency and reliability,
// this command"s encoded byte output is written as is without being
// decoded.
else:
with open_file(cachefile, "wb") as fp:
fp.write(subprocess.check_output(gdk_pixbuf_query_loaders))
// Bundle this loader cache with this frozen application.
datas.append((cachefile, cachedest))
// Else, loader detection is unsupported on this platform.
else:
logger.warning(
After Change
prefix = """ + os.path.join(libdir, "gdk-pixbuf-2.0", "2.10.0")
plen = len(prefix)
win_prefix = """ + "\\\\".join(["lib", "gdk-pixbuf-2.0", "2.10.0"] )
win_plen = len(win_prefix)
// For each line in the updated loader cache...
for line in cachedata.splitlines():
if line.startswith("//"):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pyinstaller/pyinstaller
Commit Name: 5ae5a2d4af15e570a74bc4541ac153ad12cddec5
Time: 2021-01-05
Author: dan@yeaw.me
File Name: PyInstaller/hooks/hook-gi.repository.GdkPixbuf.py
Class Name:
Method Name:
Project Name: astroML/astroML
Commit Name: 4227f7c2810a6fc48165311e19a4a6aaac38475e
Time: 2019-04-16
Author: bsipocz@gmail.com
File Name: astroML/datasets/sdss_specgals.py
Class Name:
Method Name: fetch_sdss_specgals
Project Name: lingpy/lingpy
Commit Name: 02b1345a9b521639f8966f35b6103fcdecdb8f91
Time: 2013-09-16
Author: mattis.list@posteo.de
File Name: setup.py
Class Name:
Method Name: