Trackplacer: work correctly on wesnoth-umc-dev with a -d argument.
This commit is contained in:
parent
7e8c3c1880
commit
f56b6ac222
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue