Skip to content

Commit

Permalink
Documenting methods
Browse files Browse the repository at this point in the history
  • Loading branch information
urinieto committed Jan 26, 2017
1 parent d293b5b commit ae6ba2d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,27 @@


def kill(*proccesses):
"""Kills a list of processes.
Parameters
----------
processes: list
List of process ids to be killed.
"""
for proc in proccesses:
os.killpg(os.getpgid(proc.pid), signal.SIGTERM)


def run(wport, sport):
"""Main process to run the demo.
Parameters
----------
wport: int
Webapp port number.
sport: int
Server port number.
"""
# Some sanity checks
assert os.path.isdir("docs") and os.path.isdir("backend_server"), \
"This script must be launched from OpenMic's root directory."
Expand Down

0 comments on commit ae6ba2d

Please sign in to comment.