如何从magento 2.X的类别和产品页面中删除默认样式文件(styles-l.css,styles-m.css)
答案 0 :(得分:3)
var p = Python.CreateEngine();
var scope = p.CreateScope();
var libs = new[] {
"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\Extensions\\Microsoft\\Python Tools for Visual Studio\\2.2",
"C:\\Program Files (x86)\\IronPython 2.7\\Lib",
"C:\\Program Files (x86)\\IronPython 2.7\\DLLs",
"C:\\Program Files (x86)\\IronPython 2.7",
"C:\\Program Files (x86)\\IronPython 2.7\\lib\\site-packages"
};
p.SetSearchPaths(libs);
p.ExecuteFile("Test.py", scope);
将其添加到catalog_product_view.xml并检查