Skip to content

Commit

Permalink
Merge pull request #79 from tue-robotics/fix/rqt_s_option
Browse files Browse the repository at this point in the history
fixes #65, ignore '-s' argument of rqt
  • Loading branch information
reinzor authored Jan 12, 2019
2 parents 8f1972f + a20ddf2 commit 1d72ee0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import print_function

import os
import sys
from argparse import Namespace

import errno
Expand Down Expand Up @@ -45,4 +46,8 @@ def main(image_dir, model_dir, output_dir, steps, batch, architecture="inception
tf.app.flags.FLAGS.random_scale = random_scale
tf.app.flags.FLAGS.random_brightness = random_brightness

tf_main('')
# Do not pass on the '-s' argument of rqt
if "rqt" in sys.argv[0]:
sys.argv.pop(1)

tf_main('')

0 comments on commit 1d72ee0

Please sign in to comment.