Class {
	#name : #WodenCoreAssets,
	#superclass : #Object,
	#classVars : [
		'Session',
		'WodenCoreAssetsLocation'
	],
	#category : #'WodenEngine-CoreAssets'
}

{ #category : #accessing }
WodenCoreAssets class >> findCoreAssets [
	| location |
	location := Smalltalk imageDirectory / 'core-assets'.
	location exists ifFalse: [
		location := IceLibgitRepository repositoriesLocation / #ronsaldo / 'wloden-core-assets' resolve: location.
	].

	location exists ifFalse: [
		location := FileSystem workingDirectory / 'core-assets'
	].
	
	location exists ifFalse: [
		self error: 'Failed to find the Woden Lowtalk sources.'
	].

	^ location
]

{ #category : #accessing }
WodenCoreAssets class >> location [
	Session ~~ Smalltalk session ifTrue: [ 
		WodenCoreAssetsLocation := self findCoreAssets.
		Session := Smalltalk session
	].
	^ WodenCoreAssetsLocation
]

Class {
	#name : #WodenCoreAssets,
	#superclass : #Object,
	#classVars : [
		'Session',
		'WodenCoreAssetsLocation'
	],
	#category : #'WodenEngine-CoreAssets'
}

{ #category : #accessing }
WodenCoreAssets class >> findCoreAssets [
	| location |
	location := Smalltalk imageDirectory / 'core-assets'.
	location exists ifFalse: [
		location := IceLibgitRepository repositoriesLocation / #ronsaldo / 'wloden-core-assets'
	].

	location exists ifFalse: [
		location := FileSystem workingDirectory / 'core-assets'
	].
	
	location exists ifFalse: [
		self error: 'Failed to find the Woden Lowtalk sources.'
	].

	^ location
]

{ #category : #accessing }
WodenCoreAssets class >> location [
	Session ~~ Smalltalk session ifTrue: [ 
		WodenCoreAssetsLocation := self findCoreAssets.
		Session := Smalltalk session
	].
	^ WodenCoreAssetsLocation
]

Fix a bug on the search of the core assets.
Fix a bug on the search of the core assets.
ronsaldo/wloden-core-assets,ronsaldo/wloden-core-assets