<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 09/08/2021 09:33 a.m., Nicola Mingotti via Cuis-dev wrote:
<blockquote
cite="mid:0a0ed88e-b42d-08ee-c44f-955620a4e03f@gmail.com"
type="cite">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<font size="+1"><font face="monospace">Hi again,<br>
<br>
Problem. I have made my own package, classes, methods.<br>
Ok, all is ready to start the real work. But I need to do<br>
some cleaning and put data files in a reasonably safe
directory<br>
Example: some JSON data file needed by my methods.<br>
<br>
The ideal for me would be to put the data files in the same
directory<br>
containing the FooBar.pck.st file, or a sub-directory of it.<br>
<br>
Now, it would be all easy if i could say <br>
----<br>
FooBar getMyPackageDirectory.<br>
----<br>
<br>
Up to now i found that<br>
-----------------<br>
ou1 _ CodePackageList new. "# here I can find the loaded
package list."<br>
<br>
Then I could iterate over CodePackage list in 'CodePackageList
new packages' and check<br>
the first one containing class 'FooBar'.<br>
<br>
What I ask you is this. Can I go in the inverse way? Does<br>
a Class know who is its ClassCatergory ? Does a ClassCategory<br>
know who is its package ? <br>
<br>
<br>
bye<br>
Nicola<br>
<br>
</font></font> </blockquote>
<br>
Just ask `aClass package`.<br>
<br>
<br>
Cheers,<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
<a class="moz-txt-link-abbreviated" href="http://www.cuis-smalltalk.org">www.cuis-smalltalk.org</a>
<a class="moz-txt-link-freetext" href="https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev">https://github.com/Cuis-Smalltalk/Cuis-Smalltalk-Dev</a>
<a class="moz-txt-link-freetext" href="https://github.com/jvuletich">https://github.com/jvuletich</a>
<a class="moz-txt-link-freetext" href="https://www.linkedin.com/in/juan-vuletich-75611b3">https://www.linkedin.com/in/juan-vuletich-75611b3</a>
@JuanVuletich</pre>
</body>
</html>