Toolbox for analyzing and editing pkg application files for psp,ps3, ps4 and ps5, includes the most useful functions you might need.
| 1 | class Extension: |
| 2 | @staticmethod |
| 3 | def get_until_or_empty(text, stop_at="-"): |
| 4 | if text: |
| 5 | char_location = text.find(stop_at) |
| 6 | if char_location > 0: |
| 7 | return text[:char_location] |
| 8 | return "" |