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

Commit 6572a90

Browse files
authored
Update graphene_django_hook.py
1 parent 752648d commit 6572a90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graphene_django_hook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import argparse
22
import shlex
33
import subprocess
4+
from distutils.sysconfig import get_python_lib
45
import sys
56
from typing import Optional
67
from typing import Sequence
@@ -37,7 +38,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
3738
args = parser.parse_args(argv)
3839

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

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

0 commit comments

Comments
 (0)