diff options
| author | Jon Bernard <bernardj@gmail.com> | 2010-09-18 15:13:29 -0400 |
|---|---|---|
| committer | Jon Bernard <bernardj@gmail.com> | 2010-09-18 15:13:29 -0400 |
| commit | 5624b973b4ae39cf4985cc60055c695ee38d8150 (patch) | |
| tree | 2c41b7e9215b24534b435893e4183c190219e50e /bin | |
| parent | 9458b75cd770e13668c13e9bbe006afd0a9c9891 (diff) | |
| download | pepseq-5624b973b4ae39cf4985cc60055c695ee38d8150.zip | |
Remove unnecessary template code
Quickly includes support for several features (eg. data directory) that
I find unnecessary for this project. Strip out all that crap and
simplify setup.py. Who wants a python application that can only build on
recent versions of Ubuntu?
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/pepseq | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1,7 +1,6 @@ #!/usr/bin/python # -*- coding: utf-8 -*- -import gettext import logging import optparse import os @@ -20,7 +19,7 @@ if (os.path.exists(os.path.join(PROJECT_ROOT_DIRECTORY, 'pepseq')) sys.path.insert(0, PROJECT_ROOT_DIRECTORY) os.putenv('PYTHONPATH', PROJECT_ROOT_DIRECTORY) # for subprocesses -from pepseq import pepseqconfig +from pepseq.core import __version__ LEVELS = ( logging.ERROR, logging.WARNING, @@ -30,10 +29,9 @@ LEVELS = ( logging.ERROR, if __name__ == "__main__": - version = pepseqconfig.__pepseq_data_directory__ # Support for command line options. usage = _("pepseq [options]") - parser = optparse.OptionParser(version="pepseq %s" % version, usage=usage) + parser = optparse.OptionParser(version="pepseq %s" % __version__, usage=usage) parser.add_option('-d', '--debug', dest='debug_mode', action='store_true', help=_('Print the maximum debugging info (implies -vv)')) parser.add_option('-v', '--verbose', dest='logging_level', action='count', |