Adapt zdtm for python3 compatibility

As python3 imports are working a bit differently the structure of the
imported files needs to change. Instead of having symlinks to criu.py
and rpc_pb2.py which does not match the import structure just create
symlink to ../lib/py (like crit) to make zdtm usable again with the
python3 compatibility.

Signed-off-by: Adrian Reber <areber@redhat.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Adrian Reber 2018-05-16 06:20:25 +00:00 committed by Pavel Emelyanov
parent 4feb07020d
commit 767534f10f
4 changed files with 2 additions and 3 deletions

View file

@ -1 +0,0 @@
../lib/py/criu.py

1
test/pycriu Symbolic link
View file

@ -0,0 +1 @@
../lib/py/

View file

@ -1 +0,0 @@
../lib/py/rpc_pb2.py

View file

@ -20,7 +20,7 @@ import fcntl
import errno
import datetime
import yaml
import criu as crpc
import pycriu as crpc
os.chdir(os.path.dirname(os.path.abspath(__file__)))