Skip to content

Commit

Permalink
Add cli entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Dec 6, 2015
1 parent 2076030 commit 76acd0d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions pycep/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys
import pycep.interpreter

def main():
if len(sys.argv) > 1:
pycep.interpreter.execfile(sys.argv[1])
return 0
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
description = "Python Inception",
url = "http://github.com/dlorch/pycep/",
classifiers = [
"Development Status :: 1 - Planning",
"Development Status :: 2 - Pre-Alpha",
"Topic :: Software Development :: Interpreters"
],
entry_points = {
'console_scripts': ['pycep=pycep.cli:main'],
}
)

0 comments on commit 76acd0d

Please sign in to comment.