[libgda/wip/lantw/dont-hard-code-the-path-of-python-dont-use-non-standard-uint-type: 1/2] Don't hard-code the path of Python



commit 1a64daa287d790dcc82b19147d6d4bcd6b85a994
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Wed Jul 10 18:01:31 2019 +0800

    Don't hard-code the path of Python
    
    Not all systems put Python in the same place. We should rely on PATH to
    find it instead of hard-coding a path used by some systems.

 providers/mysql/gen_bin.py | 2 +-
 providers/raw_spec.py      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/providers/mysql/gen_bin.py b/providers/mysql/gen_bin.py
index e5c91c61f..919306d04 100755
--- a/providers/mysql/gen_bin.py
+++ b/providers/mysql/gen_bin.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import argparse
 import os
diff --git a/providers/raw_spec.py b/providers/raw_spec.py
index ddd01de40..023d60032 100755
--- a/providers/raw_spec.py
+++ b/providers/raw_spec.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 
 import argparse
 import os.path


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]