From: Jeremy Stanley Date: Thu, 15 Dec 2016 06:17:09 +0000 (+0000) Subject: Package the daemon executable as an entrypoint X-Git-Tag: 0.0.1~172 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=e2d7115d4ec4ee451c7f8e86a4f7277a940d9036;p=mudpy.git Package the daemon executable as an entrypoint Move the daemon executable into the Python package and define an entrypoint for it in setup.cfg so a similar `mudpy` executable will still be installed. Drop the unnecessary import path override now while at it. --- diff --git a/bin/mudpy b/mudpy/daemon.py similarity index 88% rename from bin/mudpy rename to mudpy/daemon.py index d7ec045..2413204 100755 --- a/bin/mudpy +++ b/mudpy/daemon.py @@ -1,15 +1,10 @@ -#!/usr/bin/env python3 -"""Skeletal executable for the mudpy engine.""" - # Copyright (c) 2004-2016 Jeremy Stanley . Permission # to use, copy, modify, and distribute this software is granted under # terms provided in the LICENSE file distributed with this software. # core objects for the mudpy engine import imp -import os import sys -sys.path.append(os.path.realpath(".")) import mudpy diff --git a/setup.cfg b/setup.cfg index c1e4624..35cd6bc 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,3 +28,7 @@ classifier = [files] packages = mudpy + +[entry_points] +console_scripts = + mudpy = mudpy.daemon:main