Skip to content

Commit

Permalink
fixup! Copy snip files with createSnip
Browse files Browse the repository at this point in the history
  • Loading branch information
hunse committed Oct 8, 2020
1 parent 21a946a commit 840fc79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nengo_loihi/hardware/nxsdk_shim.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def _make_tmp_files(self, name, c_file, include_dir=None):
with open(c_file) as f0, open(new_c_file) as f1:
src = f0.read()
dst = f1.read()
if src != dst:
if src != dst: # pragma: no cover
print("=== SOURCE: %s" % (c_file,))
print(src)
print("\n=== DEST: %s" % (new_c_file,))
Expand All @@ -95,6 +95,7 @@ def _make_tmp_files(self, name, c_file, include_dir=None):
return new_c_file, new_include_dir

def createProcess(self, name, cFilePath, includeDir, *args, **kwargs):
# pragma: no cover (only used with older NxSDK)
cFilePath, includeDir = self._make_tmp_files(name, cFilePath, includeDir)
return super().createProcess(name, cFilePath, includeDir, *args, **kwargs)

Expand Down

0 comments on commit 840fc79

Please sign in to comment.