跳转到主内容

SnapCreator 4.1 和更高版本在 /bin/sh 中运行 .py 脚本而不是 python_home

Views:
19
Visibility:
Public
Votes:
0
Category:
snap-creator-framework
Specialty:
snapx
Last Updated:

状态信息

适用于

  • Snap Creator Framework (SCF) 4.1 、 4.1.2
  • pre 和 postscript 中使用的 Python 脚本
  • python_home 设置为 Python 可执行文件

问题

SCF4.1 使用 /bin/sh 运行 .py 、而不是使用 python_home 。

如果没有 Shebang (#!) , .py 脚本将无法运行 Python 行。

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.