擅长:python、mysql、java
<p>我的tmp解决方案是在maya启动脚本中添加我的脚本\u dir</p>
<p>在C:\Users\rororoco\Documents\maya\scripts中\用户设置.py,添加以下代码:</p>
<pre><code>import imp
import os
imp.load_source("", "c:/users/" + os.environ["USERNAME"] + "/OneDrive/maya/script/userSetup.py")
</code></pre>
<p>在我的剧本里/用户设置.py将my_script_dir添加到系统路径在</p>
^{pr2}$