diff --git a/makepanda/makepackage.py b/makepanda/makepackage.py index a12c493aa3..ec78a5277e 100755 --- a/makepanda/makepackage.py +++ b/makepanda/makepackage.py @@ -1074,12 +1074,11 @@ def MakeInstallerAndroid(version, **kwargs): def MakeInstaller(version, **kwargs): target = GetTarget() if target == 'windows': - if kwargs.get('installdir') is None: + dir = kwargs.pop('installdir', None) + if dir is None: dir = "C:\\Panda3D-" + version if GetTargetArch() == 'x64': dir += '-x64' - else: - dir = kwargs['installdir'] fn = "Panda3D-"