Skip to content

Commit

Permalink
Modify code to accept '.packj.yaml' for customizing alerts
Browse files Browse the repository at this point in the history
Signed-off-by: Ashish Bijlani <[email protected]>
  • Loading branch information
ashishbijlani committed Oct 12, 2022
1 parent c8c7fe8 commit e9b7fad
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
**/__pycache__
**/.DS_Store
**/.*.swp
**/.packj.yaml
**/sandbox/strace
**/sandbox/*.so
4 changes: 2 additions & 2 deletions packj/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def main(config:str):
exit(1)

def bin_wrapper():
config = os.path.join('.packj', 'config.yaml')
config = '.packj.yaml'
if not os.path.exists(config):
config = os.path.expanduser(os.path.join('~', f'{config}'))
config = os.path.expanduser(os.path.join('~', os.path.join('.packj', 'config.yaml')))
return main(config)

def main_wrapper():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def run(self):
data_files = [
(os.path.expanduser(os.path.join('~','.packj')), ['packj/config.yaml']),
],
version = '0.9',
version = '0.10',
license='GNU AGPLv3',
description = 'Packj flags "risky" open-source packages in your software supply chain',
long_description=long_description,
Expand Down

0 comments on commit e9b7fad

Please sign in to comment.