misc: fix shebang with missing env 74/22374/2
authorNathan Skrzypczak <[email protected]>
Mon, 9 Sep 2019 14:45:06 +0000 (16:45 +0200)
committerAndrew Yourtchenko <[email protected]>
Mon, 30 Sep 2019 15:19:53 +0000 (15:19 +0000)
This is needed for macos where /usr/bin/python[23] does not exist
and /usr/bin is write protected

Type: fix

Change-Id: Ia1b3c732248c78482993de532fa2ea96e376d90a
Signed-off-by: Nathan Skrzypczak <[email protected]>
(cherry picked from commit 5c2f96436afd0cef13797f764474a54f464d7916)

src/plugins/nat/extras/nat_static_gen_cfg.py
src/tools/vppapigen/vppapigen.py

index ff6312a..a8e609c 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!/usr/bin/env python
 import ipaddress
 import argparse
 
index 5b70d0a..e6a0bdc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 
 import ply.lex as lex
 import ply.yacc as yacc