Checks for existence of Chrome's History file.

This commit is contained in:
Abhay Rana 2014-09-24 12:31:37 +05:30
parent 6298da5f5b
commit b2dda62fe0
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,8 @@
from __future__ import print_function
import sqlite3
import shutil
import os
import sys
class Chrome:
@staticmethod
@ -20,4 +22,7 @@ class Chrome:
@staticmethod
def setup(config_folder_path):
file_name = os.path.abspath(config_folder_path+'/History')
if not os.path.isfile(file_name):
print("ERROR: ", "Could not find Chrome history file", file=sys.stderr)
sys.exit(1)
shutil.copyfile(file_name, '/tmp/hackertray.chrome')