voicesauce / opensauce-python

Voice analysis software (Python port of VoiceSauce)
Apache License 2.0
53 stars 16 forks source link

Allowed for relative paths in input #37

Open MichaelGoodale opened 5 years ago

MichaelGoodale commented 5 years ago

Currently, relative paths that go up a directory level will not work properly, due to a couple wav_fn.split('.')s. I changed these in this PR to use the os.path.splitext function instead, so that ../path/to/file.wav works properly. Before, any file with ../ would lead to a Praat error -- unable to locate .pfmt file error.

terriyu commented 5 years ago

Thanks for the feedback @MichaelGoodale. Can you provide an example on the command line that fails? There needs to be a corresponding test in the test suite that checks for this case with relative paths.