Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.db.msu_mfsd_mod bob.db.msu_mfsd_mod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • bob.db.msu_mfsd_modbob.db.msu_mfsd_mod
  • Issues
  • #2
Closed
Open
Issue created Jun 08, 2016 by André Anjos@andre.anjos💬Owner

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 = '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))
Assignee
Assign to
Time tracking