Subject: | nytprof fails on Win32, tries to create illegally-named files |
When I execute nytprofhtml, it tries to generate a HTML report based on
the path to the directory that the profiler was run in.
The result is a failure like the following
Unable to open
nytprof/Z:-opt-liveprice2-blib-lib-LP2-Filter-JSON.pm-sub.html for
writing: No such file or directory
When generating the report on Win32, you'll need to normalise out all of
the characters that are illegal on Windows filesystems.
The list of banned characters is qw{ / \ : * ? " < > | } but the only
one you are likely to have a problem with is the colon, because it is
legal in the full filesystem path, but illegal in a file or directory name.
So you'll need to just add a s/:/_/ in the file name generator.