Do you know where your variables are? | |
PerlMonks |
Re: [OT++] Seeking Win32 Python Wisdomby thanos1983 (Parson) |
on Mar 16, 2017 at 12:35 UTC ( [id://1184874]=note: print w/replies, xml ) | Need Help?? |
Hello syphilis, Why don't you try to get the path and then convert it? Sample of code:
Sample of output:
Update: Maybe also this could help (Windows shell string operations (changing backslash to slash)). I do not have WindowsOS so I can not really test it (sorry). Update2: I remember many many years ago when I was running WindowsOS I used to use (Cygwin). If I remember correctly it uses forward slashes, again (sorry) I do not have WindowsOS so I can not really test it. Update3: In your case you have to reverse the parameters of course. I did not mention that before I did not thought that it is necessary. Update4: I also found (Kernel::System::SysConfig - to manage sys config settings). I do not know if it helps but from the documentation is more or less what sysconfig — Provide access to Python’s configuration information. Just an idea. UnixOS Update5: I also found (Win32::kernel32). I do not know if it helps but from the documentation: SearchPath can provide you:
Just an idea and this is for. WindowsOS Update6: Most likely you have thought about it already but just came into my mind. Why you do not execute your Python script and capture the output and convert it with Perl? Sample of code:
Hope this helps.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|