Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
[OT++] Seeking Win32 Python Wisdomby syphilis (Archbishop) |
on Mar 16, 2017 at 11:33 UTC ( [id://1184865]=perlquestion: print w/replies, xml ) | Need Help?? |
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
For this simple 2 line python script: my python-2.7 outputs C:\Users\sisyphus\AppData\Roaming\Python I am seeking a win32 python-2.7 that, for the same script, would output forward slashes in place of those backslashes. Anyone know where I might obtain such a beast ? Alternatively, is there a file somewhere inside my existing python-2.7 distro that I could hack such that those backslashes are replaced by forward slashes ? Cheers, Rob Just to explain a little: My current building (in the msys2 shell) of gobject-introspection (needed for the perl module Glib-Object-Introspection) fails to run to completion. It dies with: Clearly, a path of C:\_32\Python27/lib has been delivered to the build process - and I'm fairly sure that those backslashes come straight from python itself. Certainly, I haven't specified any paths that contain a backslash. Now, the msys2 shell will understand /c/_32/Python27 and C:/_32/Python27 but it regards the backslashes in C:\_32\Python27 as escapes. Here's a quick demo of this: So ... I'm thinking that if I can get python to deliver paths that contain only forward slashes then this problem will be solved. Until then, all is *not* necessarily lost. The build does proceed long enough to create the girepository library - which might just turn out to be all that Glib-Object-Introspection needs. In any case, it would be nice to get the damn process to work as it should (even if only to enable installation by running make install, instead of the manual copy'n'pasting that's currently needed).
Back to
Seekers of Perl Wisdom
|
|