diff --git a/__init__.py b/__init__.py index fb1e659..6d3db33 100644 --- a/__init__.py +++ b/__init__.py @@ -19,8 +19,8 @@ # 3) Explicitly states which classes and functions in PyPL2 are meant to be public # parts of the API. -from pypl2lib import PL2FileInfo, PL2AnalogChannelInfo, PL2SpikeChannelInfo, PL2DigitalChannelInfo, PyPL2FileReader -from pypl2api import pl2_ad, pl2_spikes, pl2_events, pl2_info +from .pypl2lib import PL2FileInfo, PL2AnalogChannelInfo, PL2SpikeChannelInfo, PL2DigitalChannelInfo, PyPL2FileReader +from .pypl2api import pl2_ad, pl2_spikes, pl2_events, pl2_info __author__ = 'Chris Heydrick (chris@plexon.com)' __version__ = '1.1.0' diff --git a/pypl2api.py b/pypl2api.py index 35004ad..d607043 100644 --- a/pypl2api.py +++ b/pypl2api.py @@ -9,12 +9,12 @@ # copyright notice is kept intact. from collections import namedtuple -from pypl2lib import * +from .pypl2lib import * def print_error(pypl2_file_reader_instance): error_message = (c_char * 256)() pypl2_file_reader_instance.pl2_get_last_error(error_message, 256) - print error_message.value + print(error_message.value) def pl2_ad(filename, channel): diff --git a/pypl2lib.py b/pypl2lib.py index bed936a..5b09e76 100644 --- a/pypl2lib.py +++ b/pypl2lib.py @@ -120,10 +120,10 @@ def __init__(self, pl2_dll_path = 'bin'): try: self.pl2_dll = CDLL(self.pl2_dll_file) except (WindowsError): - print "Error: Can't load PL2FileReader.dll at: " + self.pl2_dll_file - print "PL2FileReader.dll is bundled with the C++ PL2 Offline Files SDK" - print "located on the Plexon Inc website: www.plexon.com" - print "Contact Plexon Support for more information: support@plexon.com" + print("Error: Can't load PL2FileReader.dll at: " + self.pl2_dll_file) + print("PL2FileReader.dll is bundled with the C++ PL2 Offline Files SDK") + print("located on the Plexon Inc website: www.plexon.com") + print("Contact Plexon Support for more information: support@plexon.com") def pl2_open_file(self, pl2_file): """