From c7e86580d42c0f4a782e47181cb65d8494ad80b5 Mon Sep 17 00:00:00 2001 From: Daniel Dayley Date: Tue, 2 Nov 2021 22:49:14 -0600 Subject: [PATCH] Little things --- new_python_tool.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/new_python_tool.sh b/new_python_tool.sh index 60527c9..7e1a30f 100755 --- a/new_python_tool.sh +++ b/new_python_tool.sh @@ -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_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 - sed_i 's#import python-tool##g' ./"$NAME"/bin/"$NAME" + sed_i "s#import $NAME##g" ./"$NAME"/bin/"$NAME" fi # Configure package to install as a persistent service? @@ -140,6 +140,7 @@ new_python_tool() { ! [ -d ./"$NAME"/"$NAME" ] && mkdir ./"$NAME"/"$NAME" sed_i "s/.*##PLUGIN_\(.*\)/\1/g" ./"$NAME"/bin/"$NAME" mkdir ./"$NAME"/"$NAME"/plugins + touch ./"$NAME"/"$NAME"/plugins/plugin.py else : sed_i 's#.*plugins.*##g' ./"$NAME"/setup.py sed_i "s/.*##PLUGIN_\(.*\)//g" ./"$NAME"/bin/"$NAME"