diff --git a/src/DynamoPackages/PackageManagerExtension.cs b/src/DynamoPackages/PackageManagerExtension.cs index 1ec4eb166a3..b5ce7686ad4 100644 --- a/src/DynamoPackages/PackageManagerExtension.cs +++ b/src/DynamoPackages/PackageManagerExtension.cs @@ -161,18 +161,8 @@ public void Startup(StartupParams startupParams) PackageUploadBuilder.SetEngineVersion(startupParams.DynamoVersion); var uploadBuilder = new PackageUploadBuilder(dirBuilder, new MutatingFileCompressor()); - // Align the package upload directory with the package download directory - - // either the one selected by the user or the default directory. - string packageUploadDirectory; - if (startupParams.Preferences is PreferenceSettings preferences) - { - packageUploadDirectory = string.IsNullOrEmpty(preferences.SelectedPackagePathForInstall) ? - startupParams.PathManager.DefaultPackagesDirectory : preferences.SelectedPackagePathForInstall; - } - else - { - packageUploadDirectory = startupParams.PathManager.DefaultPackagesDirectory; - } + var packageUploadDirectory = startupParams.PathManager.DefaultPackagesDirectory; + PackageManagerClient = new PackageManagerClient( new GregClient(startupParams.AuthProvider, url), uploadBuilder, packageUploadDirectory);