Re: SCM systems and pathnames question
"Marco Antoniotti (as marco dot antoniotti at unimib dot it)" <[email protected]> Mon, 18 May 2026 16:27:51 +0200
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <CAG0Nw2kg5A=unCdQ9xZ23tagNOapEYECcqP9Pw=yRErmcNkKWg@mail.gmail.com> |
This is great, thank you so much! Exactly what I needed. I usually do not use DSPECS because I work mostly on portable code, but in this case this is what I will use. Marco On Mon, May 18, 2026 at 3:48 PM Tim Bradshaw <[email protected]> wrote: > On 17 May 2026, at 22:27, Marco Antoniotti (as marco dot antoniotti at > unimib dot it) <[email protected]> wrote: > > > > Hi > > > > Apologies if this is a very stupod question. > > > > Is there a way to get the actual pathname a SCM-SCM-SYSTEM was defined > in? > > I don't know if you can rely on this, but system names are dspecs, so you > can use dspec-definition-locations to find them: > > > (dspec:dspec-definition-locations '(defsystem "FOO")) > (((defsystem "FOO") #P"/private/tmp/x.lisp") ((defsystem "FOO") :listener)) > > (Yes, I defined it once in the listner before realising that was not the > thing to do>) -- Marco Antoniotti, Professor, Director tel. +39 - 02 64 48 79 01 DISCo, University of Milan-Bicocca U14 2043 http://dcb.disco.unimib.it Viale Sarca 336 I-20126 Milan (MI) ITALY REGAINS: https://regains.disco.unimib.it/