From d243404d4ba88bcf53f7310cc8980b4efe38c19f Mon Sep 17 00:00:00 2001 From: Marijn Tamis Date: Mon, 1 Apr 2019 14:21:09 +0200 Subject: 1.1.6 Release. --- PxShared/src/compiler/cmake/findfileswithspec.py | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 PxShared/src/compiler/cmake/findfileswithspec.py (limited to 'PxShared/src/compiler/cmake/findfileswithspec.py') diff --git a/PxShared/src/compiler/cmake/findfileswithspec.py b/PxShared/src/compiler/cmake/findfileswithspec.py deleted file mode 100644 index 484ff4f..0000000 --- a/PxShared/src/compiler/cmake/findfileswithspec.py +++ /dev/null @@ -1,23 +0,0 @@ -import os,argparse,sys,string - -# -# Simple helper program - give it a path and it will list all of the files of the specified extension in relative format, using the -# pathroot variable as a substitution. This greatly simplifies one part of the process of creating a CMake file for a project -# -parser = argparse.ArgumentParser() -parser.add_argument("dir", help="Path to find files in") -parser.add_argument("extension", help="Spec to find (ie .cpp)") -parser.add_argument("--pathroot", help="Path variable to prepend to each line, example: ${PX_ROOT}", default="${DUDER}") - -args = parser.parse_args() - -if not os.path.exists(args.dir): - print("Unable to find path {}".format(args.dir)) - exit(1) - -for root, dirs, files in os.walk(args.dir): - for file in files: - if file.endswith(args.extension): - result = os.path.join(root, file) - - print(result.replace(args.dir, args.pathroot)) -- cgit v1.2.3