Skip to content

Commit

Permalink
Reorganize the code and fix the setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yml committed Jan 22, 2012
1 parent 60de5c6 commit 5ced84a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include README.md
1 change: 1 addition & 0 deletions kip/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "0.1.1"
Binary file added kip/__init__.pyc
Binary file not shown.
8 changes: 5 additions & 3 deletions kip.py → kip/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@
import subprocess
import glob

__version__ = "0.1.1"
NAME = sys.argv[0]

config=ConfigParser.ConfigParser()
config.read(['kip.conf', os.path.expanduser('~/.kip/kip.conf')])

config.read(
[
os.path.join(os.path.dirname(__file__), "kip.conf"),
os.path.expanduser('~/.kip/kip.conf')
])

HOME_PWD = os.path.expanduser(config.get('passwords', 'home'))
LEN_PWD = int(config.get('passwords', 'len'))
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ def read(fname):
description="kip Keeps Passwords",
long_description=read('README.md'),
packages=find_packages(),
package_data={},
package_data={'kip': ['kip.conf']},
entry_points={
'console_scripts':[
'kip=kip:main'
'kip=kip.cli:main'
]
},
url="https://github.com/grahamking/kip",
Expand Down

0 comments on commit 5ced84a

Please sign in to comment.