From 09a9ed9734480289f5dfeea0fcdd6e85b7503df1 Mon Sep 17 00:00:00 2001 From: Jim Paris Date: Wed, 5 Aug 2020 17:01:47 -0400 Subject: [PATCH] Fix #! at top of shell scripts for py3 and venvs --- nilmrun/processmanager.py | 2 +- scripts/kill.py | 2 +- scripts/nilmrun_server.py | 2 +- scripts/ps.py | 2 +- scripts/run.py | 2 +- setup.py | 2 +- tests/runtests.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nilmrun/processmanager.py b/nilmrun/processmanager.py index 2b4e629..807e6d6 100644 --- a/nilmrun/processmanager.py +++ b/nilmrun/processmanager.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import threading import subprocess diff --git a/scripts/kill.py b/scripts/kill.py index 34bd581..ee2b08e 100755 --- a/scripts/kill.py +++ b/scripts/kill.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from nilmdb.client.httpclient import HTTPClient, ClientError, ServerError from nilmdb.utils.printf import * diff --git a/scripts/nilmrun_server.py b/scripts/nilmrun_server.py index 1d135c9..40bc1a5 100755 --- a/scripts/nilmrun_server.py +++ b/scripts/nilmrun_server.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import nilmrun.server import argparse diff --git a/scripts/ps.py b/scripts/ps.py index 8e3655a..2b7b9f3 100755 --- a/scripts/ps.py +++ b/scripts/ps.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from nilmdb.client.httpclient import HTTPClient, ClientError, ServerError from nilmdb.utils.printf import * diff --git a/scripts/run.py b/scripts/run.py index 9bee01f..4b9e05d 100755 --- a/scripts/run.py +++ b/scripts/run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 from nilmdb.client.httpclient import HTTPClient, ClientError, ServerError from nilmdb.utils.printf import * diff --git a/setup.py b/setup.py index 382a59d..3eb8673 100755 --- a/setup.py +++ b/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # To release a new version, tag it: # git tag -a nilmrun-1.1 -m "Version 1.1" diff --git a/tests/runtests.py b/tests/runtests.py index 8c25399..acb3574 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 import nose import os