diff --git a/source/dub/dub.d b/source/dub/dub.d index c513864..38b3d61 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -96,7 +96,7 @@ m_rootPath = Path(root_path); if (!m_rootPath.absolute) m_rootPath = Path(getcwd()) ~ m_rootPath; - this(); + init(); PackageSupplier[] ps = additional_package_suppliers; @@ -129,13 +129,13 @@ /// Initializes DUB with only a single search path this(Path override_path) { - this(); + init(); m_overrideSearchPath = override_path; m_packageManager = new PackageManager(Path(), Path(), false); updatePackageSearchPath(); } - private this() + private void init() { version(Windows){ m_systemDubPath = Path(environment.get("ProgramData")) ~ "dub/";