As mentioned already by thanos1983, modifying the result as it is returned to you, or overriding the method may be your best and/or safest betI'm dealing with an autotools (./configure) build, and the libtool script that's reporting the error is itself autogenerated during the build.
I suppose it might be possible to make the correction in that script and then reset the script's timestamp to it's original setting.
Line 5999 of the libtool script is:
absdir=`cd "$dir" && pwd`
I could try preceding that line of code with the shell scripting of
$dir =~ s/\\/\//g
What would that shell scripting equivalent of that perl code look like ? (I know as much about sh as I do about python ;-)
It would be much better if Python just handed a forward-slashed path.
I'm guessing that there's a python command that's handing over python's equivalent of something like $Config{prefix}.
C:\>perl -V:prefix
prefix='c:\MinGW\perl524_64int';
In perl I could easily hack a solution such that
perl -V:prefix returned a forward-slashed rendition of that path.
I was hoping that python might also lend itself to such hacking.
looking at the _getuserbase() code within the /usr/lib/python2.7/sysconfig.py file, the result may be coming from somewhere in the os.path method (os.py file), Hmmm ... altering os.sep might (or might not) be all that's needed.
How would I change that setting ?
Is there a simple python command (or script) that will tell me the current setting of os.sep ?
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.