Skip to content

Commit 8feb24f

Browse files
author
Ethan Lee
committed
Check psycopg2-binary error
Signed-off-by: Ethan Lee <[email protected]>
1 parent 7e6ecbe commit 8feb24f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/fosslight_binary/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
import argparse
66
import sys
77
import os
8-
import shutil
8+
#import shutil
99
from fosslight_util.help import print_package_version
1010
from fosslight_binary._help import print_help_msg
1111
from fosslight_binary.binary_analysis import find_binaries
1212
from fosslight_util.timer_thread import TimerThread
1313

1414
_PKG_NAME = "fosslight_binary"
1515

16-
16+
'''
1717
def get_terminal_size():
1818
size = shutil.get_terminal_size()
1919
return size.lines
@@ -29,7 +29,7 @@ def paginate_file(file_path):
2929
print(''.join(lines[i: i + lines_per_page]))
3030
if i + lines_per_page < len(lines):
3131
input("Press Enter to see the next page...")
32-
32+
'''
3333

3434
def main():
3535
global windows
@@ -105,8 +105,8 @@ def main():
105105
for ff in os.listdir(data_path):
106106
source_file = os.path.join(data_path, ff, 'r', encoding='utf8')
107107
destination_file = os.path.join(base_path, ff, 'w', encoding='utf8')
108-
paginate_file(source_file)
109-
shutil.copyfile(source_file, destination_file)
108+
#paginate_file(source_file)
109+
#shutil.copyfile(source_file, destination_file)
110110
sys.exit(0)
111111

112112
timer = TimerThread()

0 commit comments

Comments
 (0)