mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 19:34:18 -04:00
Fix error on OSX
This commit is contained in:
parent
a784967166
commit
af57d1ba34
@ -380,8 +380,10 @@ def makeInstaller():
|
|||||||
tmproot = "/var/tmp/Panda3D Runtime/"
|
tmproot = "/var/tmp/Panda3D Runtime/"
|
||||||
if os.path.exists(tmproot):
|
if os.path.exists(tmproot):
|
||||||
shutil.rmtree(tmproot)
|
shutil.rmtree(tmproot)
|
||||||
if os.path.exists("p3d-setup.pkg"):
|
if os.path.isfile("p3d-setup.pkg"):
|
||||||
os.remove("p3d-setup.pkg")
|
os.remove("p3d-setup.pkg")
|
||||||
|
elif os.path.isdir("p3d-setup.pkg"):
|
||||||
|
shutil.rmtree("p3d-setup.pkg")
|
||||||
if not os.path.exists(tmproot):
|
if not os.path.exists(tmproot):
|
||||||
os.makedirs(tmproot)
|
os.makedirs(tmproot)
|
||||||
dst_npapi = os.path.join(tmproot, "Library", "Internet Plug-Ins", npapi)
|
dst_npapi = os.path.join(tmproot, "Library", "Internet Plug-Ins", npapi)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user