Trackplacer: work correctly on wesnoth-umc-dev with a -d argument.

This commit is contained in:
Eric S. Raymond 2008-10-28 08:23:15 +00:00
parent 7e8c3c1880
commit f56b6ac222

View file

@ -1142,7 +1142,7 @@ if __name__ == "__main__":
try:
filename = os.path.join(here, arguments[0])
# Relativize file path to current directory
if filename.startswith(os.getcwd()):
if filename.startswith(os.getcwd() + os.sep):
filename = filename[len(os.getcwd())+1:]
TracksEditor(path=filename, verbose=verbose)
except IOException, e: