Add split strip helper function

This commit is contained in:
JonnyWong16 2021-04-02 12:00:01 -07:00
parent 5197418cb8
commit 1311f688f2
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -408,6 +408,10 @@ def clean_filename(filename, replace='_'):
return cleaned_filename return cleaned_filename
def split_strip(s, delimiter=','):
return [x.strip() for x in str(s).split(delimiter) if x.strip()]
def split_path(f): def split_path(f):
""" """
Split a path into components, starting with the drive letter (if any). Given Split a path into components, starting with the drive letter (if any). Given