From 98c3beff210d88f2c4d43ac2519482eb5afe1599 Mon Sep 17 00:00:00 2001 From: jay817 Date: Fri, 23 Aug 2024 15:50:37 -0400 Subject: [PATCH] Update playwright/README.md --- playwright/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playwright/README.md b/playwright/README.md index 87ac38f..f058475 100644 --- a/playwright/README.md +++ b/playwright/README.md @@ -42,11 +42,11 @@ if __name__ == "__main__": ```python # db.py -import sqlite3, json +import sqlite3, json, os class DB(sqlite3.Connection): def __init__(self, db_name=".db.sqlite"): - super().__init__(db_name) + super().__init__(os.path.expanduser(db_name)) with self: self.execute(''' CREATE TABLE IF NOT EXISTS kv_store @@ -105,7 +105,7 @@ class DB(sqlite3.Connection): if __name__ == "__main__": - db = DB() + db = DB('~/db.sqlite') # 문자열 저장 및 조회 db["hello"] = "world"