bob.db.msu_mfsd_mod issues
https://gitlab.idiap.ch/bob/bob.db.msu_mfsd_mod/-/issues
2018-09-13T04:18:41Z
https://gitlab.idiap.ch/bob/bob.db.msu_mfsd_mod/-/issues/2
Our bob.nightlies are failing because of this package
2018-09-13T04:18:41Z
André Anjos
Our bob.nightlies are failing because of this package
*Created by: tiagofrepereira2012*
Hey, our nightlies builds are not passing because of this package.
Check it out.
https://gitlab.idiap.ch/biometric/bob.nightlies
Basically this assertion is not working.
```
dbfolder = 'b...
*Created by: tiagofrepereira2012*
Hey, our nightlies builds are not passing because of this package.
Check it out.
https://gitlab.idiap.ch/biometric/bob.nightlies
Basically this assertion is not working.
```
dbfolder = 'bob/db/msu_mfsd_mod/test_images/' #simulated db repo. containing only the 2 videos used in this test.
self.assertTrue(os.path.isdir(dbfolder))
```
This assertion may work when the "main" package `bob.db.msu_mfsd_mod`.
However, since this package is a sub-module on nightlies this relatively path is not valid.
I suggest you to use pkg_resources to discover this package (it is more consistent).
For instance you can do something like this.
```
import pkg_resources
dbfolder = pkg_resources.resource_filename('bob.db.msu_mfsd_mod','test_images')
self.assertTrue(os.path.isdir(dbfolder))
```