c***@posteo.jp
2015-12-19 16:24:50 UTC
I try to understand the AddOn package for Python3 and think about if
this would be a solution for my very simple problem or if it is a
little bit to much.
I have a simple script opening a zip-file an "doing something" on each
file in there. Thats it. What is done there should be specified by a
AddOn/PlugIn.
Currently I just have some functions in my code like this:
def do_X()
def do_Y()
def do_Z()
and I simply assign their names to my main-function in the same py-file.
do = do_Y
do()
I want to call my script like that
:/myscript.py file.zip --addon MyY
What would you suggest?
this would be a solution for my very simple problem or if it is a
little bit to much.
I have a simple script opening a zip-file an "doing something" on each
file in there. Thats it. What is done there should be specified by a
AddOn/PlugIn.
Currently I just have some functions in my code like this:
def do_X()
def do_Y()
def do_Z()
and I simply assign their names to my main-function in the same py-file.
do = do_Y
do()
I want to call my script like that
:/myscript.py file.zip --addon MyY
What would you suggest?
--
GnuPGP-Key ID 0751A8EC
GnuPGP-Key ID 0751A8EC