Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.buildout bob.buildout
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3
    • Issues 3
    • 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.buildoutbob.buildout
  • Issues
  • #7
Closed
Open
Issue created Mar 23, 2015 by André Anjos@andre.anjos💬Owner

'./bin/python script.py' will have wrong paths

Created by: siebenkopf

The 'PYTHONSTARTUP' hook: https://github.com/bioidiap/bob.buildout/blob/master/bob/buildout/python.py#L66 to get the paths right that we have established in the ./bin/python script only works for interactive shells: https://docs.python.org/2/tutorial/interactive.html?highlight=pythonstartup#id1

Hence, it has no effect, when you run a script.py in the current directory, which requires the setup of the system:

$ ./bin/python script.py

However, you can get things right, when you

import pkg_resources

as the first line in script.py.

I am not sure if we need to take any action for this. I opened this bug mainly to keep track of this issue.

Assignee
Assign to
Time tracking