diff options
Diffstat (limited to 'import-layers/yocto-poky/meta/lib/oeqa/core/utils/path.py')
-rw-r--r-- | import-layers/yocto-poky/meta/lib/oeqa/core/utils/path.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/import-layers/yocto-poky/meta/lib/oeqa/core/utils/path.py b/import-layers/yocto-poky/meta/lib/oeqa/core/utils/path.py deleted file mode 100644 index a21caad5c..000000000 --- a/import-layers/yocto-poky/meta/lib/oeqa/core/utils/path.py +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (C) 2016 Intel Corporation -# Released under the MIT license (see COPYING.MIT) - -import os -import sys - -def findFile(file_name, directory): - """ - Search for a file in directory and returns its complete path. - """ - for r, d, f in os.walk(directory): - if file_name in f: - return os.path.join(r, file_name) - return None - -def remove_safe(path): - if os.path.exists(path): - os.remove(path) - |