Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Commit

Permalink
make imagneto executable when installing magneto as a pip package
Browse files Browse the repository at this point in the history
  • Loading branch information
maticrivo committed Mar 11, 2015
1 parent ca4a78b commit eef358d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
17 changes: 13 additions & 4 deletions imagneto → magneto/imagneto.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
import sys
from IPython import embed
from magneto.magneto import Magneto

from .magneto import Magneto


m = magneto = None


def stop():
m.server.stop()
if m:
m.server.stop()


if __name__ == '__main__':
def main():
args = sys.argv[1:]
Magneto.configure(*args)
m = magneto = Magneto.instance()

embed()
embed()


if __name__ == '__main__':
main()
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='magneto',
version='0.1.3',
version='0.1.4',
description='Magneto - Command your droids.',
author='EverythingMe',
author_email='automation@everything.me',
Expand All @@ -19,7 +19,8 @@

entry_points={
'console_scripts': [
'magneto = magneto.main:main'
'magneto = magneto.main:main',
'imagneto = magneto.imagneto:main'
]
},

Expand Down

0 comments on commit eef358d

Please sign in to comment.