Skip to content

Commit 73c86a2

Browse files
author
L'In20Cible
committed
Fixed Downloadables.add_directory.
1 parent 9aa3b27 commit 73c86a2

File tree

1 file changed

+1
-1
lines changed
  • addons/source-python/packages/source-python/stringtables

1 file changed

+1
-1
lines changed

Diff for: addons/source-python/packages/source-python/stringtables/downloads.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def add_directory(self, directory):
6363
"""
6464
index = 0
6565
for index, file in enumerate(GAME_PATH.joinpath(directory).walkfiles(), 1):
66-
self.add(file.replace(GAME_PATH, '').replace('\\', '/'))
66+
self.add(file.replace(GAME_PATH, '').replace('\\', '/').lstrip('/'))
6767

6868
return index
6969

0 commit comments

Comments
 (0)