Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Update graphene_django_hook.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 authored Jun 12, 2020
1 parent 752648d commit 6572a90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graphene_django_hook.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import shlex
import subprocess
from distutils.sysconfig import get_python_lib
import sys
from typing import Optional
from typing import Sequence
Expand Down Expand Up @@ -37,7 +38,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
args = parser.parse_args(argv)

# TODO: Fix parsing arguments
command = './{} graphql_schema'.format(args.managepy_path or 'manage.py')
command = '{} {} graphql_schema'.format(get_python_lib(), args.managepy_path or 'manage.py')

if args.settings is not None:
command += ' --settings={}'.format(args.settings)
Expand Down

0 comments on commit 6572a90

Please sign in to comment.