fixed usage of unix-only attribute (fixed #3939)

This commit is contained in:
Dirk Thomas 2012-04-27 16:15:28 +00:00
parent 96517ec9e0
commit 0d5cfca44a
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ Commands:
\trosclean check\tCheck usage of log files
\trosclean purge\tRemove log files
""")
sys.exit(os.EX_USAGE)
sys.exit(getattr(os, 'EX_USAGE', 1))
def _get_check_dirs():
home_dir = rospkg.get_ros_home()

View File

@ -53,7 +53,7 @@ or
\t%s --rostest pkg-name test-file.xml
"""%(NAME, NAME), file=sys.stderr)
print(sys.argv)
sys.exit(os.EX_USAGE)
sys.exit(getattr(os, 'EX_USAGE', 1))
def check_main():
if len(sys.argv) < 2: