Skip to content

Commit de10ab7

Browse files
committed
allow rtox module to be executed
Signed-off-by: Sorin Sbarnea <[email protected]>
1 parent abb778e commit de10ab7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

rtox/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env python
2+
import rtox
3+
4+
5+
if __name__ == '__main__':
6+
rtox.cli()

rtox/rtox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ def cli():
172172
if os.environ.get('RTOX') == '1':
173173
logging.warn("Avoinding recursive call of rtox, returning 0.")
174174
raise SystemExit(0)
175-
176175
parser = \
177176
argparse.ArgumentParser(
177+
prog='rtox',
178178
description='rtox runs tox on a remote machine instead of '
179179
'current one.',
180180
add_help=True)

0 commit comments

Comments
 (0)