Skip to content

Commit

Permalink
change os.path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoTian committed Aug 18, 2016
1 parent 8fe5f67 commit d8c7a58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def run_command(command, prefix, *arguments):
prefix = escape_for_winpath(prefix)
arguments = list(map(escape_for_winpath, arguments))
if command is Commands.CONFIG:
command_line = "{0} --file {1} {2}".format(command, join(prefix, 'condarc'), " ".join(arguments))
command_line = "{0} --file {1} {2}".format(command, os.path.join(prefix, 'condarc'), " ".join(arguments))
elif command is Commands.SEARCH:
command_line = "{0} {1}".format(command, " ".join(arguments))
elif command is Commands.LIST:
Expand All @@ -109,15 +109,15 @@ def make_temp_env(*packages, **kwargs):
with disable_logger('fetch'), disable_logger('dotupdate'):
try:
# try to clear any config that's been set by other tests
reset_context([join(prefix, 'condarc')])
reset_context([os.path.join(prefix, 'condarc')])
run_command(Commands.CREATE, prefix, *packages)
yield prefix
finally:
rmtree(prefix, ignore_errors=True)


def reload_config(prefix):
prefix_condarc = join(prefix, 'condarc')
prefix_condarc = os.path.join(prefix, 'condarc')
reset_context([prefix_condarc])


Expand Down

0 comments on commit d8c7a58

Please sign in to comment.