Skip to content

Commit 4425735

Browse files
author
Charles Weir
committed
CW: Sorted out package imports; got nosetests and apps running.
1 parent 4664a23 commit 4425735

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

ExamplePrograms/DoorControl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# The door is attached to a motor, which opens it by moving through 90 degrees, and closes it the same way.
66
# The sensor is mounted above the door, so it detects approaching 'peaple'.
77

8-
from TkApplication import *
8+
from BrickPython.TkApplication import *
99

1010

1111
class DoorControlApp(TkApplication):

ExamplePrograms/MotorController.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Z,z increase and decrease the 'Integrated distance multimplier' - the I setting.
1414

1515

16-
from TkApplication import *
16+
from BrickPython.TkApplication import *
1717

1818

1919
class MyApp(TkApplication):

test/TestBrickPiWrapper.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111

1212

1313

14-
from BrickPiWrapper import *
14+
from BrickPython.BrickPiWrapper import *
15+
from BrickPython.Sensor import *
1516
import unittest
1617
from mock import *
17-
from Sensor import *
18+
1819

1920

2021
class TestBrickPiWrapper(unittest.TestCase):

test/TestMotor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
from BrickPiWrapper import *
14+
from BrickPython.BrickPiWrapper import *
1515
import unittest
1616
from mock import *
1717

test/TestScheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
from BrickPiWrapper import *
14+
from BrickPython.BrickPiWrapper import *
1515
import unittest
1616
from mock import *
1717

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212

1313

14-
from BrickPiWrapper import *
1514
import unittest
16-
from Sensor import *
15+
from BrickPython.BrickPiWrapper import *
16+
from BrickPython.Sensor import *
1717

18-
class SensorTests(unittest.TestCase):
18+
class TestSensor(unittest.TestCase):
1919
global Sensor
2020

2121
def testSensor(self):

0 commit comments

Comments
 (0)