Skip to content

Commit 430476f

Browse files
committed
Modify to make excutable file
Signed-off-by: Jaekwon Bang <[email protected]>
1 parent 7767778 commit 430476f

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

cli.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
# Copyright (c) 2020 LG Electronics Inc.
4+
# SPDX-License-Identifier: Apache-2.0
5+
from fosslight_dependency.analyze_dependency import main
6+
7+
8+
if __name__ == '__main__':
9+
main()

hooks/hook-fosslight_dependency.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from PyInstaller.utils.hooks import collect_all
2+
3+
datas, binaries, hiddenimports = collect_all('fosslight_dependency')

src/fosslight_dependency/analyze_dependency.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from bs4 import BeautifulSoup
1818
import yaml
1919
import pkg_resources
20-
from lastversion import lastversion
2120
from datetime import datetime
2221
from fosslight_util.set_log import init_log, init_log_item
2322
from fosslight_util.write_excel import write_excel_and_csv
@@ -1021,7 +1020,7 @@ def main():
10211020
_result_log = init_log_item(_PKG_NAME)
10221021

10231022
logger.info("Tool Info : " + _result_log["Tool Info"])
1024-
1023+
10251024
# Configure global variables according to package manager.
10261025
try:
10271026
configure_package()

0 commit comments

Comments
 (0)