You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 4 DB in Python/SQLite Demo/vinventory.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,8 @@
11
11
#import os
12
12
#path_root = os.path.dirname(os.path.abspath(__file__)) #grab the file system path to the current script file
13
13
#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"
15
16
defcreate_connection(db_file):
16
17
""" create a database connection to the SQLite database
0 commit comments