English 中文(简体)
命令线太长了
原标题:depswriter.py complains The command line is too long
  • 时间:2012-05-28 06:52:21
  •  标签:

我试图在Windows 7. 我的python版本为2.7.3。 它抱怨命令行太长。

它在Linux完全运作良好。

任何能让它在窗户里发挥作用的解决方案。

问题回答

要在 < a href=" http://support.microsoft.com/kb/830473" rel = "nofollow" > Windows 命令-line 限制 和 depsprofer.py 周围工作, 您可以使用以下标记对 JavaScript 文件的目录进行循环扫描 :

--root               A root directory to scan for JS source files. Paths of JS 
                     files in generated deps file will be relative to this path. 
                     This flag may be specified multiple times.  

--root_with_prefix   A root directory to scan for JS source files, plus a prefix
                     (if either contains a space, surround with quotes).  Paths 
                     in generated deps file will be relative to the root, but 
                     preceded by the prefix. This flag may be specified multiple 
                     times.


In many cases, an entire project can be specified using one --root flag.





相关问题
热门标签