From 231b68f320e654bb5427a8bf3595c057ed44b56c Mon Sep 17 00:00:00 2001 From: alexandre maloteaux Date: Tue, 31 Jan 2017 10:04:13 +0100 Subject: [PATCH] virtualenv compatibility --- empyre | 2 +- setup/install.sh | 1 + setup/setup_database.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/empyre b/empyre index c2fcaf8..325eee4 100755 --- a/empyre +++ b/empyre @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import sqlite3, argparse, sys, argparse, logging, json, string, os, re, time, signal, copy, base64 from flask import Flask, request, jsonify, make_response, abort diff --git a/setup/install.sh b/setup/install.sh index 44e076f..bc5314a 100755 --- a/setup/install.sh +++ b/setup/install.sh @@ -61,6 +61,7 @@ else pip install pydispatcher pip install macholib pip install flask + pip install pyOpenSSL fi # set up the database schema diff --git a/setup/setup_database.py b/setup/setup_database.py index 110a05b..f82dac7 100755 --- a/setup/setup_database.py +++ b/setup/setup_database.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python import sqlite3, os, string, hashlib from Crypto.Random import random