diff options
author | 2013-08-09 12:06:41 +0200 | |
---|---|---|
committer | 2013-08-09 12:06:41 +0200 | |
commit | f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41 (patch) | |
tree | 6116b4c0aeece3d4d7654f5061d1416527a86a64 /setup.py | |
parent | roverlay/packagerules: remove TODO note (diff) | |
download | R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.tar.gz R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.tar.bz2 R_overlay-f5b1a9ab8aab7175eacc0a78005fe5ddb0ed9b41.zip |
clean up main script / arg parsing
This commit is a (more or less) complete rewrite of roverlay's arg parsing.
Notable differences/changes:
* fixes name clash issues / "hidden" imports; all modules can now be imported
at the beginning of the file
* usage of a "runtime environment" data object instead of global variables
run_<command>() functions use this environment (passed as first arg) now
* extensible/modular arg parser creation, which allows to write helper scripts
with a reduced set of options
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,10 +13,10 @@ setup ( url = 'http://git.overlays.gentoo.org/gitweb/?p=proj/R_overlay.git;a=summary', entry_points = { 'console_scripts': [ - 'roverlay = roverlay.main:main_installed', + 'roverlay = roverlay.defaultscript:main_installed', + 'roverlay-sh = roverlay.defaultscript:run_shell_main_installed', + #'roverlay-exec = roverlay.defaultscript:run_script_main_installed', 'roverlay-mkconfig = roverlay.config.mkconfig:make_config', - 'roverlay-sh = roverlay.main:run_shell_main_installed', - #'roverlay-exec = roverlay.main:run_script_main_installed', ] }, packages = find_packages ( exclude=[ 'tests', 'tests.*' ] ), |