This commit is contained in:
Richard Hartmann 2016-09-21 22:01:21 +02:00
parent d0c9b28edc
commit f8fec1f0d1
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,8 @@
# binfootprint
[![Build Status](https://travis-ci.org/cimatosa/binfootprint.svg?branch=master)](https://travis-ci.org/cimatosa/binfootprint)
Calculate a unique binary representation (binary footprint) for simple data structures
with the intension to use this binary footprint as a loop up key for example in a data base.

View file

@ -8,13 +8,16 @@ import sys
if sys.version_info.major > 2:
import pathlib
path = pathlib.PosixPath(__file__).absolute()
jobmanager = path.parent.parent
sys.path.insert(0, str(jobmanager))
bf_package = path.parent.parent
print(bf_package)
sys.path.insert(0, str(bf_package))
else:
from os.path import abspath, dirname, split
# Add parent directory to beginning of path variable
sys.path = [split(dirname(abspath(__file__)))[0]] + sys.path
print(sys.path[0])
import binfootprint as bfp
import numpy as np