From 11d23264254d318ffa0d91ced29f633ed1dc5091 Mon Sep 17 00:00:00 2001 From: "dn337t@gmail.com" Date: Fri, 22 Jun 2012 11:09:36 +0000 Subject: [PATCH] made clients/pm3_*.py importable as Python modules --- client/pm3_eml2mfd.py | 3 ++- client/pm3_mfd2eml.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/pm3_eml2mfd.py b/client/pm3_eml2mfd.py index be29715c..c583d267 100644 --- a/client/pm3_eml2mfd.py +++ b/client/pm3_eml2mfd.py @@ -31,4 +31,5 @@ def main(argv): file_inp.close() file_out.close() -main(sys.argv) +if __name__ == '__main__': + main(sys.argv) diff --git a/client/pm3_mfd2eml.py b/client/pm3_mfd2eml.py index 8e624269..5c5dc4dd 100644 --- a/client/pm3_mfd2eml.py +++ b/client/pm3_mfd2eml.py @@ -32,4 +32,5 @@ def main(argv): file_inp.close() file_out.close() -main(sys.argv) +if __name__ == '__main__': + main(sys.argv) -- 2.39.5