Skip to content

Commit 92e77f7

Browse files
committed
path error fixed
1 parent 135a8e4 commit 92e77f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

queryserver/nfquery/sources/ipport/IPPortParser.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,10 @@ def parse_source_and_create_output(source_name, source_file, output_type, output
8686
#parse_source_and_create_output(source_name, source_file, output_type, output_file)
8787

8888
source_name = 'TestIPPort'
89-
source_file = './IPPortSource.txt'
89+
source_dir = os.path.dirname(__file__)
90+
source_file = source_dir + '/IPPortSource.txt'
9091
output_type = 3
91-
output_file = './IPPortOutput.txt'
92-
93-
#fetch_source(source_link, source_file)
92+
output_file = source_dir + '/IPPortOutput.txt'
9493
parse_source_and_create_output(source_name, source_file, output_type, output_file)
9594

9695

0 commit comments

Comments
 (0)