
class History:
    def __init__(self):
        self.conn = sqlite3.connect('.history.db')


import sqlite3

class History:
    def __init__(self, path):
        self.conn = sqlite3.connect(path)


Make database filepath configurable on History
Make database filepath configurable on History

+ import sqlite3
  
  class History:
-     def __init__(self):
+     def __init__(self, path):
-         self.conn = sqlite3.connect('.history.db')
+         self.conn = sqlite3.connect(path)
  
  
Make database filepath configurable on History
## Code Before:

class History:
    def __init__(self):
        self.conn = sqlite3.connect('.history.db')


## Instruction:
Make database filepath configurable on History
## Code After:
import sqlite3

class History:
    def __init__(self, path):
        self.conn = sqlite3.connect(path)

