From 3859bb118644ffc80d9f502654ac4377338213f4 Mon Sep 17 00:00:00 2001 From: Pepijn de Vos Date: Thu, 5 May 2022 09:30:57 +0200 Subject: [PATCH] use cmd.exe on windows --- pyttoresque/app/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyttoresque/app/__init__.py b/pyttoresque/app/__init__.py index c3a51dd..4cadf4e 100644 --- a/pyttoresque/app/__init__.py +++ b/pyttoresque/app/__init__.py @@ -60,9 +60,12 @@ def main(): def setup_couchdb(): + cmd = ['couchdb', '-couch_ini', os.path.join(HERE, "static", "local.ini")] + if os.name == 'nt': + cmd = ["cmd.exe", "/c"] + cmd return { # hardcode port for backend access - 'command': ['couchdb', '-couch_ini', os.path.join(HERE, "static", "local.ini")], + 'command': cmd, 'port': 5984 }