Skip to content

Commit

Permalink
Move catmux_create_session to module
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Aug 4, 2023
1 parent 000c2b5 commit af3523f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions script/catmux_create_session → catmux/catmux_create_session.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
# SOFTWARE.
# -- END LICENSE BLOCK ------------------------------------------------

from __future__ import print_function
import os
import logging
import subprocess
Expand Down Expand Up @@ -136,7 +135,3 @@ def main():
session_config.run()
if not args.detach:
safe_call(["tmux", "-L", args.server_name, "attach", "-t", args.session_name])


if __name__ == "__main__":
main()
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
long_description_content_type="text/markdown",
url="https://github.com/fmauch/catmux",
packages=setuptools.find_packages(),
scripts=["script/catmux_create_session"],
entry_points={
'console_scripts': ['catmux_create_session=catmux.catmux_create_session:main']
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
Expand Down

0 comments on commit af3523f

Please sign in to comment.