Created
June 26, 2012 17:54
-
-
Save HenrikHoyer/2997470 to your computer and use it in GitHub Desktop.
Change all repositories to use a location relative to the location of vdevw.exe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RepositorySpec allInstances do: [:spec | | |
| locator | | |
locator := spec fileSystemLocator. | |
(locator isVolumeRelative not and: [ locator drive asUppercase = (KernelLibrary getModuleFileName: nil) asFileSystemPath drive asUppercase ]) ifTrue: [ | |
locator absolute: #volumeRelative. | |
locator componentNames: (locator componentNames copyFrom: 2). | |
]. | |
]. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment