Little things

This commit is contained in:
Daniel Dayley 2021-11-02 22:49:14 -06:00
parent f1666b6dd5
commit c7e86580d4

View File

@ -101,7 +101,7 @@ new_python_tool() {
PYTHON_TOOL_SETUP_INSTRUCTIONS+="Put your main classes and functionality in $NAME/$NAME.py and import/use that functionality in bin/$NAME" PYTHON_TOOL_SETUP_INSTRUCTIONS+="Put your main classes and functionality in $NAME/$NAME.py and import/use that functionality in bin/$NAME"
PYTHON_TOOL_WARNINGS+='You can use this package as a library! Classes you define in '"$NAME/$NAME.py"" can be imported with 'import $NAME.class_name" PYTHON_TOOL_WARNINGS+='You can use this package as a library! Classes you define in '"$NAME/$NAME.py"" can be imported with 'import $NAME.class_name"
else else
sed_i 's#import python-tool##g' ./"$NAME"/bin/"$NAME" sed_i "s#import $NAME##g" ./"$NAME"/bin/"$NAME"
fi fi
# Configure package to install as a persistent service? # Configure package to install as a persistent service?
@ -140,6 +140,7 @@ new_python_tool() {
! [ -d ./"$NAME"/"$NAME" ] && mkdir ./"$NAME"/"$NAME" ! [ -d ./"$NAME"/"$NAME" ] && mkdir ./"$NAME"/"$NAME"
sed_i "s/.*##PLUGIN_\(.*\)/\1/g" ./"$NAME"/bin/"$NAME" sed_i "s/.*##PLUGIN_\(.*\)/\1/g" ./"$NAME"/bin/"$NAME"
mkdir ./"$NAME"/"$NAME"/plugins mkdir ./"$NAME"/"$NAME"/plugins
touch ./"$NAME"/"$NAME"/plugins/plugin.py
else : else :
sed_i 's#.*plugins.*##g' ./"$NAME"/setup.py sed_i 's#.*plugins.*##g' ./"$NAME"/setup.py
sed_i "s/.*##PLUGIN_\(.*\)//g" ./"$NAME"/bin/"$NAME" sed_i "s/.*##PLUGIN_\(.*\)//g" ./"$NAME"/bin/"$NAME"