On 17/08/2019 16:32, Dennis Lee Bieber wrote:
On Sat, 17 Aug 2019 11:51:47 +0200, Paul St George <em...@paulstgeorge.com>
declaimed the following:


  print('Track E  from Track B:',os.path.realpath(n.image.filepath[1:]))
---Track E  from Track B: /image01.tif


        Just for giggles, what happens if you preface that with a single
period...

print('Track E  from Track B:',os.path.realpath("." +
n.image.filepath[1:]))




print('Track E for giggles from Track B:',os.path.realpath("." + n.image.filepath[1:]))

gives:

Track E for giggles from Track B: /images/blah.tif

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to