From c231090615f552adab46f5ac6fe31aa632588edf Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 6 Sep 2014 10:23:05 +0200 Subject: Add shebang and PEP 0263 source encoding to every module Source encoding should be specified and a shebang helps to execute a module directly (either to start jasper or just for testing purposes). --- boot/boot.py | 4 ++-- boot/test.py | 2 ++ boot/vocabcompiler.py | 2 ++ 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'boot') diff --git a/boot/boot.py b/boot/boot.py index a8141cb..22a36a5 100755 --- a/boot/boot.py +++ b/boot/boot.py @@ -1,5 +1,5 @@ -#!/usr/bin/env python - +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os import urllib2 import sys diff --git a/boot/test.py b/boot/test.py index 3d93936..638ca77 100644 --- a/boot/test.py +++ b/boot/test.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- import os if os.environ.get('JASPER_HOME') is None: diff --git a/boot/vocabcompiler.py b/boot/vocabcompiler.py index a3aaf66..9177db4 100644 --- a/boot/vocabcompiler.py +++ b/boot/vocabcompiler.py @@ -1,3 +1,5 @@ +#!/usr/bin/env python2 +# -*- coding: utf-8-*- """ Iterates over all the WORDS variables in the modules and creates a dictionary for the client. """ -- cgit v1.3.1