Dear all.
I find that gyp erase some argument when gyp invoke python script in Windows 10.
Following is excerption from error code.
# I'm trying to update gyp revision in mozc project.
https://github.com/google/mozc/blob/master/src/data_manager/data_manager_base.gypi_________________________________________________________
# mozc_dir: ../..
# platform_data_dir: '<(mozc_dir)/data/dictionary_oss'
......
{
'target_name': 'gen_separate_user_pos_data_for_<(dataset_tag)',
......
'actions': [
{
'action_name': 'gen_separate_user_pos_data_for_<(dataset_tag)',
'variables': {
'id_def': '<(platform_data_dir)/id.def',
......
'action': [
'python', '<(mozc_dir)/dictionary/gen_user_pos_data.py',
'--id_file=<(id_def)',
......
_________________________________________________________
GYP previous revision (before ae76d91) can keep id_file argument,
but current revision (after b62d04f) cannot.
So we would like to ignore path normalization in msvs_emulation.py.
_________________________________________________________
Index: pylib/gyp/msvs_emulation.py
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- pylib/gyp/msvs_emulation.py (revision 81286d388abf5c8f946f3f4be274bd987a690952)
+++ pylib/gyp/msvs_emulation.py (date 1537055731000)
@@ -31,8 +31,8 @@
# use that function to handle command line arguments.
# Use a heuristic to try to find args that are paths, and normalize them
- if arg.find('/') > 0 or arg.count('/') > 1:
- arg = os.path.normpath(arg)
+ # if arg.find('/') > 0 or arg.count('/') > 1:
+ # arg = os.path.normpath(arg)
# For a literal quote, CommandLineToArgvW requires 2n+1 backslashes
# preceding it, and results in n backslashes + the quote. So we substitute
_________________________________________________________
Thanks,
Koji