Skip to content

Commit

Permalink
only replace the first occurrence
Browse files Browse the repository at this point in the history
  • Loading branch information
rvalieris committed Aug 16, 2021
1 parent 392934d commit 98fae3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda-tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import conda.api
import networkx

__version__ = '1.0.2'
__version__ = '1.0.3'

# The number of spaces
TABSIZE = 3
Expand Down Expand Up @@ -168,7 +168,7 @@ def find_unowned_files(prefix):

for f in files:
f0 = os.path.join(root,f)
f1 = f0.replace(prefix,"").lstrip(os.sep)
f1 = f0.replace(prefix, "", 1).lstrip(os.sep)
if f1 not in pkg_files:
print(f0)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
shutil.copyfile('conda-tree.py', 'conda_tree.py')

setup(name='conda-tree',
version='1.0.2',
version='1.0.3',
description='conda dependency tree helper',
author='Renan Valieris',
url='https://github.com/rvalieris/conda-tree',
Expand Down

0 comments on commit 98fae3a

Please sign in to comment.