
import os.path, nose, glob, sys
packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py')]
sys.path += packages

nose.main()

import os.path, nose, glob, sys, pkg_resources
packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py')]
sys.path += packages
# Declare it manually, because "azure-storage" is probably installed with pip
pkg_resources.declare_namespace('azure')

nose.main()
Allow Travis to load tests and use azure-storage installed from pip at the same time
Allow Travis to load tests and use azure-storage installed from pip at the same time

  
- import os.path, nose, glob, sys
+ import os.path, nose, glob, sys, pkg_resources
  packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py')]
  sys.path += packages
+ # Declare it manually, because "azure-storage" is probably installed with pip
+ pkg_resources.declare_namespace('azure')
  
  nose.main()
Allow Travis to load tests and use azure-storage installed from pip at the same time
## Code Before:

import os.path, nose, glob, sys
packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py')]
sys.path += packages

nose.main()
## Instruction:
Allow Travis to load tests and use azure-storage installed from pip at the same time
## Code After:

import os.path, nose, glob, sys, pkg_resources
packages = [os.path.dirname(p) for p in glob.glob('azure*/setup.py')]
sys.path += packages
# Declare it manually, because "azure-storage" is probably installed with pip
pkg_resources.declare_namespace('azure')

nose.main()