parameters: (self, path)
return_statement: return local_path
docstring: Convert a subdirectory-relative path into a normalized path which starts
          with the make variable $(LOCAL_PATH) (i.e. the top of the project tree).
          Absolute paths, or paths that contain variables, are just normalized.
docstring_summary: Convert a subdirectory-relative path into a normalized path which starts
          with the make variable $(LOCAL_PATH) (i.e. the top of the project tree).
          Absolute paths, or paths that contain variables, are just normalized.
docstring_tokens: Convert a subdirectory - relative path into a normalized path which starts with the make variable $ ( LOCAL_PATH ) ( i . e . the top of the project tree ) . Absolute paths or paths that contain variables are just normalized .
function: def LocalPathify(self, path):
          """Convert a subdirectory-relative path into a normalized path which starts
          with the make variable $(LOCAL_PATH) (i.e. the top of the project tree).
          Absolute paths, or paths that contain variables, are just normalized."""
          if "$(" in path or os.path.isabs(path):
              # path is not a file in the project tree in this case, but calling
              # normpath is still important for trimming trailing slashes.
              return os.path.normpath(path)
          local_path = os.path.join("$(LOCAL_PATH)", self.path, path)
          local_path = os.path.normpath(local_path)
          # Check that normalizing the path didn't ../ itself out of $(LOCAL_PATH)
          # - i.e. that the resulting path is still inside the project tree. The
          # path may legitimately have ended up containing just $(LOCAL_PATH), though,
          # so we don't look for a slash.
          assert local_path.startswith(
              "$(LOCAL_PATH)"
          ), f"Path {path} attempts to escape from gyp path {self.path} !)"
          return local_path
function_tokens: def LocalPathify ( self , path ) : if "$(" in path or os . path . isabs ( path ) : # path is not a file in the project tree in this case, but calling # normpath is still important for trimming trailing slashes. return os . path . normpath ( path ) local_path = os . path . join ( "$(LOCAL_PATH)" , self . path , path ) local_path = os . path . normpath ( local_path ) # Check that normalizing the path didn't ../ itself out of $(LOCAL_PATH) # - i.e. that the resulting path is still inside the project tree. The # path may legitimately have ended up containing just $(LOCAL_PATH), though, # so we don't look for a slash. assert local_path . startswith ( "$(LOCAL_PATH)" ) , f"Path {path} attempts to escape from gyp path {self.path} !)" return local_path