rename server file no avoid potential name clashes

This commit is contained in:
Dima Gerasimov 2019-01-07 22:54:14 +00:00
parent 0b6084d4ee
commit fea9092497
2 changed files with 2 additions and 3 deletions

View file

@ -4,8 +4,7 @@ import argparse
from pathlib import Path from pathlib import Path
from subprocess import check_call from subprocess import check_call
# TODO rename to grasp_server.py from grasp_server import setup_parser
from server import setup_parser
SYSTEMD_CONFIG = """ SYSTEMD_CONFIG = """
[Unit] [Unit]
@ -31,7 +30,7 @@ def setup(args):
out = Path(f'~/.config/systemd/user/{unit_name}').expanduser() out = Path(f'~/.config/systemd/user/{unit_name}').expanduser()
print(f"Writing systemd config to {out}:") print(f"Writing systemd config to {out}:")
server_bin = Path(__file__).parent.joinpath('server.py').absolute() server_bin = Path(__file__).parent.joinpath('grasp_server.py').absolute()
extra_args = f'--port {args.port} --path {args.path}' extra_args = f'--port {args.port} --path {args.path}'
with out.open('w') as fo: with out.open('w') as fo: