Skip to content

Commit 8ff8a86

Browse files
committed
restored default functionality for DB file
re-added line to handle DB file finding in simple use case
1 parent 823af1b commit 8ff8a86

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

4 DB in Python/SQLite Demo/vinventory.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
#import os
1212
#path_root = os.path.dirname(os.path.abspath(__file__)) #grab the file system path to the current script file
1313
#database_file_path = str(path_root)+"/myinventory.db" #construct the path to the database file (only necessary if the current working directory is not the same as the folder where this Python file is located.)
14-
14+
#if you uncomment the three lines above, be sure to comment out this next line
15+
database_file_path = "myinventory.db"
1516
def create_connection(db_file):
1617
""" create a database connection to the SQLite database
1718
specified by the db_file

0 commit comments

Comments
 (0)