3 # DO NOT EDIT - This file is being maintained by Chef
12 # Construct the file path and resolve its real path,
13 # which will consider any symbolic links
14 file = os.path.realpath(f"/store/planet{path}")
16 # Check if the constructed file path starts with '/store/planet'
17 # and if the file actually exists
18 if file.startswith('/store/planet') and os.path.isfile(file):
19 # Print the portion of the path after '/store/planet'
20 # and immediately flush the output
21 print(file[len('/store/planet'):], flush=True)
23 # If the file does not exist or the path does not start with
24 # the expected prefix, print "NULL" and flush the output
25 print("NULL", flush=True)
27 if __name__ == "__main__":