mirror of
https://github.com/vale981/binfootprint
synced 2025-03-05 09:11:40 -05:00
fix
This commit is contained in:
parent
d0c9b28edc
commit
f8fec1f0d1
2 changed files with 8 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
|||
# binfootprint
|
||||
|
||||
[](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.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue