Merge into master from pull request #27:
portability improvements (https://github.com/floodlight/loxigen/pull/27)
diff --git a/Makefile b/Makefile
index 133b6fb..36f73ef 100644
--- a/Makefile
+++ b/Makefile
@@ -34,10 +34,10 @@
LOXI_OUTPUT_DIR = loxi_output
# Generated files depend on all Loxi code and input files
-LOXI_PY_FILES=$(shell find \( -name loxi_output -prune \
+LOXI_PY_FILES=$(shell find . \( -name loxi_output -prune \
-o -name templates -prune \
-o -name tests -prune \
- -o -true \
+ -o -name '*' \
\) -a -name '*.py')
LOXI_TEMPLATE_FILES=$(shell find */templates -type f -a \
\! \( -name '*.cache' -o -name '.*' \))
diff --git a/loxigen.py b/loxigen.py
index 3a22a12..1d1f245 100755
--- a/loxigen.py
+++ b/loxigen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
# Copyright 2013, Big Switch Networks, Inc.
#
# LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with