Skip to content

Commit

Permalink
use rstrip() 2 remove trailing root_path seperator
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Jul 25, 2021
1 parent 30ee6b5 commit 3cb5f0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rmskin_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,7 @@ def main():
args = parser.parse_args()
root_path = args.path
# truncate trailing path seperator
if root_path.endswith(os.sep):
root_path = root_path[:-1]
root_path = root_path.rstrip(os.sep)
root_path = os.path.abspath(root_path)

# The temporary build dir for storing altered files
Expand Down

0 comments on commit 3cb5f0e

Please sign in to comment.