Skip to content

Commit e9b7fad

Browse files
committed
Modify code to accept '.packj.yaml' for customizing alerts
Signed-off-by: Ashish Bijlani <ashish.bijlani@gmail.com>
1 parent c8c7fe8 commit e9b7fad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@
66
**/__pycache__
77
**/.DS_Store
88
**/.*.swp
9+
**/.packj.yaml
910
**/sandbox/strace
1011
**/sandbox/*.so

packj/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def main(config:str):
3838
exit(1)
3939

4040
def bin_wrapper():
41-
config = os.path.join('.packj', 'config.yaml')
41+
config = '.packj.yaml'
4242
if not os.path.exists(config):
43-
config = os.path.expanduser(os.path.join('~', f'{config}'))
43+
config = os.path.expanduser(os.path.join('~', os.path.join('.packj', 'config.yaml')))
4444
return main(config)
4545

4646
def main_wrapper():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run(self):
7878
data_files = [
7979
(os.path.expanduser(os.path.join('~','.packj')), ['packj/config.yaml']),
8080
],
81-
version = '0.9',
81+
version = '0.10',
8282
license='GNU AGPLv3',
8383
description = 'Packj flags "risky" open-source packages in your software supply chain',
8484
long_description=long_description,

0 commit comments

Comments
 (0)