From c5ca55c388a76b7dca2b2cfcddbce51b37a3a586 Mon Sep 17 00:00:00 2001 From: Edwin Wong Date: Wed, 26 Feb 2014 16:52:40 -0800 Subject: [PATCH] Workaround pylint warning F0401. gyp and gyp_helper path are obtained dynamically. Pylint generates format checker warning. The Workaround is recommended by: http://google-styleguide.googlecode.com/svn/trunk/pyguide.html. Although the style guide prefers using symbolic names, which is supported since pylint 0.25.3, the depot_tools/pylint is 0.25.1. Change-Id: I6c9bc21a46102f38cab68c07c98339003cbd6991 --- gyp_packager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gyp_packager.py b/gyp_packager.py index f1253188c4..6559e2b078 100755 --- a/gyp_packager.py +++ b/gyp_packager.py @@ -37,10 +37,10 @@ import sys src_dir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, os.path.join(src_dir, 'build')) -import gyp_helper +import gyp_helper # Workaround the dynamic path. pylint: disable-msg=F0401 sys.path.insert(0, os.path.join(src_dir, 'tools', 'gyp', 'pylib')) -import gyp +import gyp # Workaround the dynamic path. pylint: disable-msg=F0401 if __name__ == '__main__': args = sys.argv[1:]