Author steve.dower
Recipients aku911, eryksun, paul.moore, steve.dower, tim.golden, zach.ware
Date 2020-07-03.14:52:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1593787932.57.0.800412649572.issue41196@roundup.psfhosted.org>
In-reply-to
Content
> A crude workaround is to script PowerShell or CMD in a child process.

I mean, that's not a *terrible* workaround:

>>> import os
>>> p1 = os.path.expandvars("%APPDATA%\\test.txt")
>>> p1
'C:\\Users\\steve\\AppData\\Roaming\\test.txt'
>>> open(p1, "w").close()
>>> os.system(f'copy "{os.path.realpath(p1)}" "{p1}"')
        1 file(s) copied.
0
>>>

But yeah, definitely crude :)
History
Date User Action Args
2020-07-03 14:52:12steve.dowersetrecipients: + steve.dower, paul.moore, tim.golden, zach.ware, eryksun, aku911
2020-07-03 14:52:12steve.dowersetmessageid: <1593787932.57.0.800412649572.issue41196@roundup.psfhosted.org>
2020-07-03 14:52:12steve.dowerlinkissue41196 messages
2020-07-03 14:52:12steve.dowercreate