Browse Source

makepackage: fix None installdir when not passing in any on macOS

rdb 6 years ago
parent
commit
b7017669a1
1 changed files with 4 additions and 1 deletions
  1. 4 1
      makepanda/makepackage.py

+ 4 - 1
makepanda/makepackage.py

@@ -473,9 +473,12 @@ def MakeInstallerLinux(version, debversion=None, rpmrelease=1, runtime=False,
         exit("To build an installer, either rpmbuild or dpkg-deb must be present on your system!")
 
 
-def MakeInstallerOSX(version, runtime=False, python_versions=[], installdir="/Library/Developer/Panda3D", **kwargs):
+def MakeInstallerOSX(version, runtime=False, python_versions=[], installdir=None, **kwargs):
     outputdir = GetOutputDir()
 
+    if installdir is None:
+        installdir = "/Library/Developer/Panda3D"
+
     if runtime:
         # Invoke the make_installer script.
         AddToPathEnv("DYLD_LIBRARY_PATH", outputdir + "/plugins")