MCPcopy Create free account
hub / github.com/GNOME/gjs / _runningFromSource

Function _runningFromSource

modules/script/package.js:46–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46function _runningFromSource() {
47 let binary = Gio.File.new_for_path(System.programInvocationName);
48 let sourceBinary = Gio.File.new_for_path(`./src/${name}`);
49 return binary.equal(sourceBinary);
50}
51
52function _runningFromMesonSource() {
53 return GLib.getenv('MESON_BUILD_ROOT') &&

Callers 2

initFunction · 0.85
initSubmoduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected