mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-22 18:07:57 +00:00
Add new files for running criu-coredump via python 2 or 3
Previous commit added support for python3 in criu-coredump. For convenience, add two files (coredump-python2 and coredump-python3) that start criu-coredump with respective python version. Edit env.sh accordingly. Signed-off-by: Andrey Vyazovtsev <viazovtsev.av@phystech.edu>
This commit is contained in:
parent
3180d35fa4
commit
1c866dbb51
6
coredump/coredump-python2
Executable file
6
coredump/coredump-python2
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python2
|
||||
|
||||
import coredump
|
||||
|
||||
if __name__ == '__main__':
|
||||
coredump.main()
|
6
coredump/coredump-python3
Executable file
6
coredump/coredump-python3
Executable file
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import coredump
|
||||
|
||||
if __name__ == '__main__':
|
||||
coredump.main()
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
import argparse
|
||||
import os
|
||||
|
@ -13,5 +13,5 @@ fi
|
||||
#export PYTHON
|
||||
CRIT=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../crit/crit-"${PYTHON}")
|
||||
crit=$CRIT
|
||||
CRIU_COREDUMP=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../criu-coredump/criu-coredump)
|
||||
CRIU_COREDUMP=$(readlink -f `dirname ${BASH_SOURCE[0]}`/../../criu-coredump/coredump-"${PYTHON}")
|
||||
criu_coredump=$CRIU_COREDUMP
|
||||
|
Loading…
x
Reference in New Issue
Block a user