mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Added try catch block to deal with languages dir not found
This commit is contained in:
parent
4c95ed5006
commit
6f7d6c4c8d
|
@ -118,9 +118,12 @@ shutil.copy("license_DDRace.txt", package_dir)
|
|||
if include_data and not use_bundle:
|
||||
os.mkdir(os.path.join(package_dir, "data"))
|
||||
copydir("data", package_dir)
|
||||
os.chdir(languages_dir)
|
||||
copydir("data", "../"+package_dir)
|
||||
os.chdir("..")
|
||||
try:
|
||||
os.chdir(languages_dir)
|
||||
copydir("data", "../"+package_dir)
|
||||
os.chdir("..")
|
||||
except:
|
||||
print("couldn't find languages")
|
||||
if platform[:3] == "win":
|
||||
shutil.copy("other/config_directory.bat", package_dir)
|
||||
shutil.copy("SDL.dll", package_dir)
|
||||
|
|
Loading…
Reference in a new issue