Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

adds binaries in path to collection #158

Merged
merged 3 commits into from
Oct 13, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updates per review
  • Loading branch information
ytonui committed Oct 10, 2017
commit 805369986f15d4c52e2606c5b77b3cd7ddc0ebdd
2 changes: 1 addition & 1 deletion osxcollector/osxcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)

if PATH_ENVIRONMENT_NAME in os.environ:
for bin_dir in os.environ[PATH_ENVIRONMENT_NAME].split(":"):
for bin_dir in os.environ[PATH_ENVIRONMENT_NAME].split(os.pathsep):
for root_dir, dirs, files in os.walk(bin_dir):
for the_file in files:
file_path = os.path.join(root_dir, the_file)
Expand Down