MCPcopy Index your code
hub / github.com/saltstack/salt / get_script_path

Method get_script_path

tests/support/pkg.py:2063–2073  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2061 salt_pkg_install: SaltPkgInstall = attr.ib()
2062
2063 def get_script_path(self):
2064 if platform.is_darwin() and self.salt_pkg_install.classic:
2065 if self.salt_pkg_install.run_root and os.path.exists(
2066 self.salt_pkg_install.run_root
2067 ):
2068 return str(self.salt_pkg_install.run_root)
2069 elif os.path.exists(self.salt_pkg_install.bin_dir / self.script_name):
2070 return str(self.salt_pkg_install.bin_dir / self.script_name)
2071 else:
2072 return str(self.salt_pkg_install.install_dir / self.script_name)
2073 return super().get_script_path()
2074
2075 def cmdline(self, *args, **kwargs):
2076 _cmdline = super().cmdline(*args, **kwargs)

Callers 7

test_master_startupMethod · 0.45
test_salt_run_versionFunction · 0.45
run_scriptMethod · 0.45

Calls 1

existsMethod · 0.45

Tested by 4

test_master_startupMethod · 0.36
test_salt_run_versionFunction · 0.36