Skip to content

Commit

Permalink
use cmd.exe on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pepijndevos committed May 5, 2022
1 parent d842b41 commit 3859bb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyttoresque/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3859bb1

Please sign in to comment.