From 8e27cc053c06bfc723372108ec0f057c1b37aa95 Mon Sep 17 00:00:00 2001 From: Matti Hanninen Date: Fri, 14 Jun 2013 13:54:58 +0300 Subject: [PATCH] DEV: Don't invoke hardwired Python Instead use /urs/bin/env to detect the Python interpreter. This way the scripts work better with the possible virtual environment. --- tests/test_algorithm_gen.py | 2 +- zipline/examples/buyapple.py | 2 +- zipline/examples/dual_ema_talib.py | 2 +- zipline/examples/dual_moving_average.py | 2 +- zipline/examples/pairtrade.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/test_algorithm_gen.py b/tests/test_algorithm_gen.py index cac74447..6f226822 100644 --- a/tests/test_algorithm_gen.py +++ b/tests/test_algorithm_gen.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright 2013 Quantopian, Inc. # diff --git a/zipline/examples/buyapple.py b/zipline/examples/buyapple.py index 7c6814f8..158f3b8f 100755 --- a/zipline/examples/buyapple.py +++ b/zipline/examples/buyapple.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright 2012 Quantopian, Inc. # diff --git a/zipline/examples/dual_ema_talib.py b/zipline/examples/dual_ema_talib.py index c0ab0710..ce8a1800 100644 --- a/zipline/examples/dual_ema_talib.py +++ b/zipline/examples/dual_ema_talib.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright 2013 Quantopian, Inc. # diff --git a/zipline/examples/dual_moving_average.py b/zipline/examples/dual_moving_average.py index c247dba6..b4b5a037 100755 --- a/zipline/examples/dual_moving_average.py +++ b/zipline/examples/dual_moving_average.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright 2013 Quantopian, Inc. # diff --git a/zipline/examples/pairtrade.py b/zipline/examples/pairtrade.py index 41b7566e..e59e8512 100755 --- a/zipline/examples/pairtrade.py +++ b/zipline/examples/pairtrade.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python # # Copyright 2013 Quantopian, Inc. #