Visidata vt function homepath fix
This commit is contained in:
@@ -79,8 +79,9 @@ def vendor(mac):
|
||||
def _get_vt():
|
||||
try:
|
||||
from virus_total_apis import PublicApi as VirusTotalPublicApi
|
||||
with open('~/.virustotal_api_key') as af:
|
||||
API_KEY = af.readline()
|
||||
import os.path
|
||||
with open(os.path.expanduser('~/.virustotal_api_key')) as af:
|
||||
API_KEY = af.readline().strip()
|
||||
vt = VirusTotalPublicApi(API_KEY)
|
||||
return vt
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user