Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# KSP AutoLoc 0.3
# KSP AutoLoc 0.3.1

This script is meant to replace boring manual text replacement tasks for implementing localization to non-localized-yet part mods in KSP 1.3+

Expand Down
12 changes: 9 additions & 3 deletions autoloc.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,20 @@
#
# Also it will NOT localize ModuleManager patches, GUI commands or science definitions - you should do them manually.

# v0.3.1
# print p -> print(p)
# line 24
# raw_input() -> input()
# line 88

import sys
import os
agency = False
ver = '0.3'
ver = '0.3.1'

# Fail function
def kaput(p):
print p
print(p)
try:
input("Press enter to continue")
except SyntaxError:
Expand Down Expand Up @@ -81,7 +87,7 @@ def question(q, default=True):
prompt = " [Y/n] "

while True:
choice = raw_input(q + prompt).lower()
choice = input(q + prompt).lower()
if default != None and choice == '':
return default
elif choice in valid:
Expand Down