How to use the tts.strip_filename function in TTS

To help you get started, we’ve selected a few TTS examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cwoac / TTS-Manager / tts / url.py View on Github external
def __init__(self,url,filesystem):
    self.url = url
    self.stripped_url=tts.strip_filename(url)
    self.filesystem = filesystem
    self._isImage=None
    self._looked_for_location=False
    self._location=None
github cwoac / TTS-Manager / tts / filesystem.py View on Github external
def find_model(self,basename):
    result=None
    stripname = tts.strip_filename(basename)
    for model_format in ['.obj']:
      filename=os.path.join(self._models,stripname+model_format)
      if os.path.isfile(filename):
        result=filename
        break
    return result
github cwoac / TTS-Manager / tts / filesystem.py View on Github external
def find_image(self,basename):
    result=None
    stripname = tts.strip_filename(basename)
    for image_format in ['.png','.jpg','.bmp']:
      filename=os.path.join(self._images,stripname+image_format)
      if os.path.isfile(filename):
        result=filename
        break
    return result