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