Convert paradoc test to bash script
Now loads the paradoc correctly and gets paradoc to print the result
This commit is contained in:
parent
4a160ac5ab
commit
7ab4373992
|
@ -1,5 +0,0 @@
|
|||
try:
|
||||
import paradoc
|
||||
print('good')
|
||||
except:
|
||||
pass
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env bash
|
||||
# add paradoc module to python python
|
||||
export PYTHONPATH=$PYTHONPATH:/opt/paradoc
|
||||
# file for test code
|
||||
test_code=/tmp/paradoc.test
|
||||
# save test code to file
|
||||
echo -n iP>$test_code
|
||||
# pass param to paradoc module and have it print it
|
||||
echo good | python3.8 -m paradoc $test_code
|
||||
# clean test code
|
||||
rm -f $test_code
|
Loading…
Reference in New Issue