From a426ccf78539ae33cc05f53b617e0e795fd3ff0c Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Thu, 4 Apr 2013 01:52:41 +0200 Subject: [PATCH] gentree: make lib directory a python module That will make it easier to use gentree and/or git helpers from other scripts. Signed-off-by: Johannes Berg --- gentree.py | 4 ++-- lib/__init__.py | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 lib/__init__.py diff --git a/gentree.py b/gentree.py index 375479d0fd91..4a3f4241e2ed 100755 --- a/gentree.py +++ b/gentree.py @@ -7,9 +7,9 @@ import argparse, sys, os, errno, shutil, re, subprocess # find self source_dir = os.path.abspath(os.path.dirname(__file__)) -sys.path.append(os.path.join(source_dir, 'lib')) +sys.path.append(os.path.join(source_dir)) # and import libraries we have -import kconfig, git, patch, make +from lib import kconfig, git, patch, make def read_copy_list(copyfile): diff --git a/lib/__init__.py b/lib/__init__.py new file mode 100644 index 000000000000..1bb8bf6d7fd4 --- /dev/null +++ b/lib/__init__.py @@ -0,0 +1 @@ +# empty -- 2.30.2