Tentative fix for a Windows bug with 'include' in dialogs.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18568 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
fdbd121254
commit
3becab75b8
|
@ -55,6 +55,8 @@ def parseJSON(filename, relpath):
|
|||
if filenm[0] == "/":
|
||||
filepath = os.path.join(Crossfire.DataDirectory(),
|
||||
Crossfire.MapDirectory(), filenm[1:])
|
||||
elif relpath != '':
|
||||
filepath = os.path.join(relpath, filenm)
|
||||
else:
|
||||
filepath = os.path.join(Crossfire.DataDirectory(),
|
||||
Crossfire.MapDirectory(), relpath, filenm)
|
||||
|
|
Loading…
Reference in New Issue