summaryrefslogtreecommitdiff
path: root/django/db/backends/sqlite3/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/backends/sqlite3/client.py')
-rw-r--r--django/db/backends/sqlite3/client.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/client.py b/django/db/backends/sqlite3/client.py
index 485d540188..f6b7077a0c 100644
--- a/django/db/backends/sqlite3/client.py
+++ b/django/db/backends/sqlite3/client.py
@@ -7,6 +7,8 @@ class DatabaseClient(BaseDatabaseClient):
executable_name = 'sqlite3'
def runshell(self):
+ # TODO: Remove str() when dropping support for PY37.
+ # args parameter accepts path-like objects on Windows since Python 3.8.
args = [self.executable_name,
- self.connection.settings_dict['NAME']]
+ str(self.connection.settings_dict['NAME'])]
subprocess.run(args, check=True)