File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#
44# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
55
6- import sortOutPythonPaths
6+ import sys , os # Python path kludge - omit these 2 lines if BrickPython is installed.
7+ sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (sys .argv [0 ]))))
8+
79from BrickPython .TkApplication import TkApplication
810from BrickPython .Sensor import Sensor
911import logging
Original file line number Diff line number Diff line change 33#
44# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
55
6- import sortOutPythonPaths
6+ import sys , os # Python path kludge - omit these 2 lines if BrickPython is installed.
7+ sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (sys .argv [0 ]))))
8+
79from BrickPython .TkApplication import TkApplication
810from BrickPython .Motor import PIDSetting
911from BrickPython .Sensor import Sensor
Original file line number Diff line number Diff line change 22#
33# Copyright (c) 2014 Charles Weir. Shared under the MIT Licence.
44
5- import sortOutPythonPaths
6- from BrickPython .CommandLineApplication import *
5+ import sys , os # Python path kludge - omit these 2 lines if BrickPython is installed.
6+ sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (sys .argv [0 ]))))
7+
8+ from BrickPython .CommandLineApplication import CommandLineApplication
79
810class SimpleApp (CommandLineApplication ):
911 'Simple command line example application'
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ python setup.py test
1414echo ' >> Upload docs to pypi from' ` pwd` /docs/generated/Archive.zip
1515echo ' >> Form at the bottom of https://pypi.python.org/pypi?%3Aaction=pkg_edit&name=BrickPython'
1616echo ' >> To release module to pypi: python setup.py sdist upload'
17- echo ' >> To install without releasing: pip install -e .'
17+ echo ' >> To install without releasing: sudo pip install -e .'
You can’t perform that action at this time.
0 commit comments