Commit e9498760 authored by Marek Gumiński's avatar Marek Gumiński

A change that enables running tests from interactive terminal.

Useful for debugging.
parent 758e7e4f
......@@ -33,7 +33,10 @@ class spec:
def __init__(self, firmware, bus = -1, allwaysload = True):
self.cwd = os.path.dirname(__file__)
#the above dosn't work when code is sourced after importing it in python interactive terminal
if self.cwd=="":
self.cwd = os.getcwd()
self.bus = bus;
self.firmware = firmware;
......@@ -227,4 +230,4 @@ class spec:
def read_ow(self, addr):
# print "SPEC: reading addr: %d" % addr
return self.speclib.spec_readl( c_void_p(self.card), c_uint32(self.ONEWIRE_ADDR + addr) );
\ No newline at end of file
return self.speclib.spec_readl( c_void_p(self.card), c_uint32(self.ONEWIRE_ADDR + addr) );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment