mirror of
https://github.com/munki/munki.git
synced 2026-01-26 00:49:21 -06:00
AppleUpdates._run_softwareupdate(): properly find the local ptyexec tool
This commit is contained in:
@@ -512,11 +512,14 @@ class AppleUpdates(object):
|
||||
# device so its output is unbuffered so we can get progress info
|
||||
#
|
||||
# Try to find our ptyexec tool
|
||||
# first look in the parent directory of this file's directory
|
||||
# first look in the parent directory of the parent directory of this
|
||||
# file's directory
|
||||
# (../)
|
||||
parent_dir = os.path.dirname(
|
||||
parent_dir = (
|
||||
os.path.dirname(
|
||||
os.path.abspath(__file__)))
|
||||
os.path.dirname(
|
||||
os.path.dirname(
|
||||
os.path.abspath(__file__)))))
|
||||
ptyexec_path = os.path.join(parent_dir, 'ptyexec')
|
||||
if not os.path.exists(ptyexec_path):
|
||||
# try absolute path in munki's normal install dir
|
||||
|
||||
Reference in New Issue
Block a user