From 6f277932500320053f26b16ffd301508c2a3f1dc Mon Sep 17 00:00:00 2001 From: Tim McNamara Date: Sat, 14 Aug 2010 11:07:59 +0000 Subject: Fixes to start Various fixes at the start of these files - shebangs corrected - encoding declaration corrected - parent directory appended to PYTHONPATH --- diff --git a/Experior.Activity/tests/test_sbexecutionengine.py b/Experior.Activity/tests/test_sbexecutionengine.py index 29582c0..af53d61 100755 --- a/Experior.Activity/tests/test_sbexecutionengine.py +++ b/Experior.Activity/tests/test_sbexecutionengine.py @@ -1,23 +1,26 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -test_sbexecutionengine.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#test_sbexecutionengine.py -sugarbot is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +#This file is part of sugarbot. -sugarbot is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +#sugarbot is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 3 of the License, or +#(at your option) any later version. + +#sugarbot is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#GNU General Public License for more details. + +#You should have received a copy of the GNU General Public License +#along with sugarbot. If not, see . + +from sys import path +path.append('..') -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" from sbexecutionengine import * logging.raiseExceptions = 0 @@ -107,4 +110,4 @@ def sugarbot_main(param): self.ee.executePy() assert 0 except: - pass \ No newline at end of file + pass diff --git a/Experior.Activity/tests/test_sbgui.py b/Experior.Activity/tests/test_sbgui.py index f526d5f..6de3e87 100755 --- a/Experior.Activity/tests/test_sbgui.py +++ b/Experior.Activity/tests/test_sbgui.py @@ -1,24 +1,27 @@ -#!/usr/bin/env python -# encoding: utf-8 -""" -test_sbgui.py +#! /usr/bin/env python +# -*- encoding: utf-8 -*- -This file is part of sugarbot. +#test_sbgui.py -sugarbot is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. +#This file is part of sugarbot. -sugarbot is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +#sugarbot is free software: you can redistribute it and/or modify +#it under the terms of the GNU General Public License as published by +#the Free Software Foundation, either version 3 of the License, or +#(at your option) any later version. + +#sugarbot is distributed in the hope that it will be useful, +#but WITHOUT ANY WARRANTY; without even the implied warranty of +#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +#GNU General Public License for more details. + +#You should have received a copy of the GNU General Public License +#along with sugarbot. If not, see . -You should have received a copy of the GNU General Public License -along with sugarbot. If not, see . -""" import unittest +from sys import path +path.append('..') + import sbexecutionengine from sbgui import * diff --git a/Experior.Activity/tests/test_widgetIdentifier.py b/Experior.Activity/tests/test_widgetIdentifier.py index 83f6b3f..c2fedb0 100755 --- a/Experior.Activity/tests/test_widgetIdentifier.py +++ b/Experior.Activity/tests/test_widgetIdentifier.py @@ -1,3 +1,6 @@ +from sys import path +path.append('..') + from widgetIdentifier import * class test_widgetIdentifier: -- cgit v0.9.1