
from __future__ import unicode_literals
from __future__ import absolute_import

from os.path import join, realpath

import fs

# Add the local code directory to the `fs` module path
fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))


from __future__ import unicode_literals
from __future__ import absolute_import

from os.path import join, realpath

import fs

# Add the local code directory to the `fs` module path
# Can only rely on fs.__path__ being an iterable - on windows it's not a list
newPath = list(fs.__path__)
newPath.insert(0, realpath(join(__file__, "..", "..", "fs")))
fs.__path__ = newPath

Make namespace packages work for tests in windows
Make namespace packages work for tests in windows

  
  from __future__ import unicode_literals
  from __future__ import absolute_import
  
  from os.path import join, realpath
  
  import fs
  
  # Add the local code directory to the `fs` module path
+ # Can only rely on fs.__path__ being an iterable - on windows it's not a list
+ newPath = list(fs.__path__)
- fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))
+ newPath.insert(0, realpath(join(__file__, "..", "..", "fs")))
+ fs.__path__ = newPath
  
Make namespace packages work for tests in windows
## Code Before:

from __future__ import unicode_literals
from __future__ import absolute_import

from os.path import join, realpath

import fs

# Add the local code directory to the `fs` module path
fs.__path__.insert(0, realpath(join(__file__, "..", "..", "fs")))

## Instruction:
Make namespace packages work for tests in windows
## Code After:

from __future__ import unicode_literals
from __future__ import absolute_import

from os.path import join, realpath

import fs

# Add the local code directory to the `fs` module path
# Can only rely on fs.__path__ being an iterable - on windows it's not a list
newPath = list(fs.__path__)
newPath.insert(0, realpath(join(__file__, "..", "..", "fs")))
fs.__path__ = newPath
