[Tools/dev] Check if *.py is running on shell
authorJihoon Lee <jhoon.it.lee@samsung.com>
Thu, 2 Apr 2020 01:56:54 +0000 (10:56 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Mon, 6 Apr 2020 05:00:13 +0000 (14:00 +0900)
commit25da8ff58a243dde15298df5299afbf36698cd64
treecb6f0bd5b5e3fadad3cd90c0e4a6a85c41489866
parentbef7299d2b87c5b9a5515b3e24a8b5d127af74b1
[Tools/dev] Check if *.py is running on shell

Add `if __name__ == '__main__'` to check if *.py is running on
shell to prevent unwanted crash if users happen to import those files
 to customize tools.

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
tools/development/count_test_cases.py
tools/development/nnstreamerCodeGenCustomFilter.py