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

Commit b6ef0ff

Browse files
authored
Update graphene_django_hook.py
1 parent 8c903fe commit b6ef0ff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

graphene_django_hook.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
3636
parser.add_argument('--settings', default=None)
3737
args = parser.parse_args(argv)
3838

39-
command = '{} {} graphql_schema'.format(sys.executable, args.managepy_path)
39+
command = './{} graphql_schema'.format(args.managepy_path)
4040

4141
if args.settings is not None:
4242
command += ' --settings={}'.format(args.settings)
@@ -52,7 +52,8 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
5252

5353
if args.verbosity is not None:
5454
command += ' --verbosity={}'.format(args.verbosity)
55-
55+
56+
command = 'chmod +x {} && {}'.format(args.managepy_path, command)
5657
return run_command(command)
5758

5859

0 commit comments

Comments
 (0)