Add sheband, make sure parent directory is always in sys.path.

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/ffb4d465
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/ffb4d465
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/ffb4d465

Branch: refs/heads/trunk
Commit: ffb4d46533bcea090304d403bad2cd1faeaca183
Parents: 8f40d34
Author: Tomaz Muraus <[email protected]>
Authored: Sun Aug 4 20:07:58 2013 +0200
Committer: Tomaz Muraus <[email protected]>
Committed: Sun Aug 4 20:07:58 2013 +0200

----------------------------------------------------------------------
 contrib/generate_provider_feature_matrix_table.py | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/ffb4d465/contrib/generate_provider_feature_matrix_table.py
----------------------------------------------------------------------
diff --git a/contrib/generate_provider_feature_matrix_table.py 
b/contrib/generate_provider_feature_matrix_table.py
index 55fac04..d6aec37 100755
--- a/contrib/generate_provider_feature_matrix_table.py
+++ b/contrib/generate_provider_feature_matrix_table.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 # Licensed to the Apache Software Foundation (ASF) under one or more
 # contributor license agreements.  See the NOTICE file distributed with
 # this work for additional information regarding copyright ownership.
@@ -14,10 +15,13 @@
 # limitations under the License.
 
 import os
+import sys
 import inspect
 from collections import OrderedDict
 from os.path import join as pjoin
 
+sys.path.insert(0, '../')
+
 from libcloud.compute .base import NodeDriver
 from libcloud.compute.providers import get_driver as get_compute_driver
 from libcloud.compute.providers import DRIVERS as COMPUTE_DRIVERS

Reply via email to