Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable sample applications as setup.py's entry points #109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 3 additions & 1 deletion samples/amcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def main(argv=None):
for e in ee:
w.writerow(map(lambda i: getattr(e, i.name), FIELDS))

def _main():
main(argv=sys.argv)

if __name__ == "__main__":
main(argv=sys.argv)
main()
6 changes: 5 additions & 1 deletion samples/forensicating.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def users_info(soft_reg):
print(line)


if __name__ == "__main__":
def main():
"""
Print out all of the information
"""
Expand All @@ -317,3 +317,7 @@ def users_info(soft_reg):
network_settings(sys_reg, soft_reg)
users_info(soft_reg)
user_reg_locs(users_paths(soft_reg, users_sids(soft_reg)))

if __name__ == "__main__":
main()

9 changes: 8 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License"],
install_requires=['enum-compat']
install_requires=['enum-compat'],
entry_points = {
"console_scripts": [
"forensicating.py = samples.forensicating:main",
"amcache.py = samples.amcache:main",
"registry-timeline.py = samples.timeline:main",
]
}
)