combox

split and encrypted files between online file storage providers
git clone git://git.ricketyspace.net/combox.git
Log | Files | Refs

commit 4a5d3d534c2dea3e757b6803dcde27238e892b59
parent 7dffc3c9570105300584986f4740c1bd18094d6f
Author: Siddharth Ravikumar <sravik@bgsu.edu>
Date:   Thu,  5 Feb 2015 21:14:12 -0500

combox/cbox.py: put the code under __main__ into a new function called 'main()'

main() is called from __main__ now.

Diffstat:
combox/cbox.py | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/combox/cbox.py b/combox/cbox.py @@ -53,8 +53,10 @@ def run_cb(config): observer.join() -if __name__ == "__main__": - +def main(): + """ + Main functions, parses args and calls run_cb() + """ parser = ArgumentParser() parser.add_argument("-t", "--test", help="Use the combox config file in testing area.", @@ -80,3 +82,7 @@ if __name__ == "__main__": # run combox. run_cb(config) + + +if __name__ == "__main__": + main()