diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d167d87 --- /dev/null +++ b/.gitignore @@ -0,0 +1,57 @@ +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] + +# C extensions +*.so + +# Distribution / packaging +.Python +env/ +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +*.egg-info/ +.installed.cfg +*.egg + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*,cover + +# Translations +*.mo +*.pot + +# Django stuff: +*.log + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ \ No newline at end of file diff --git a/config.cnf b/config.cnf new file mode 100644 index 0000000..7197a7c --- /dev/null +++ b/config.cnf @@ -0,0 +1,2 @@ +[directory] +book_dir=./books diff --git a/rhuthmos/__init__.pyc b/rhuthmos/__init__.pyc deleted file mode 100644 index 62b0b5b..0000000 Binary files a/rhuthmos/__init__.pyc and /dev/null differ diff --git a/rhuthmos/rhuthmos.pyc b/rhuthmos/rhuthmos.pyc deleted file mode 100644 index 45111a9..0000000 Binary files a/rhuthmos/rhuthmos.pyc and /dev/null differ diff --git a/rhymeless.py b/rhymeless.py index 4ba9931..8e84444 100644 --- a/rhymeless.py +++ b/rhymeless.py @@ -498,7 +498,7 @@ def get_rhymeless_sqlite_con_and_cursor(config): print err #print args #sys.exit() - if ("-h", "") in optlist: + if "-h" in optlist: print help sys.exit() if len(args) > 0 and args[0] in set(["plain", "html", "sqlite"]):