added missing slash

main
Nicholas Hope 2022-08-14 15:47:48 -04:00
parent e105a06534
commit c9e710ab9b
1 changed files with 7 additions and 2 deletions

View File

@ -136,7 +136,11 @@ def main() -> int:
targetDir = getTargetDir(systemName)
if targetDir is not None:
# Supported OS: add steamapps path
targetDir += normpath("/steamapps/common/Team Fortress 2/tf/cfg/")
targetDir += normpath("/steamapps/common/Team Fortress 2/tf/cfg")
if systemName == "Windows":
targetDir += '\\'
else:
targetDir += '/'
elif args.force:
# Unsupported OS but -f specified
if args.debug:
@ -152,7 +156,8 @@ def main() -> int:
fileNames = parseConfig(config, defaults)
fileList = writing.replaceFiles(targetDir, fileNames, args)
writing.appendToActuals(targetDir, fileList, args)
defaultsGiven = (defaults is not None)
writing.appendToActuals(targetDir, fileList, defaultsGiven, args)
return 0