#!/usr/bin/python
# -*- coding: utf-8 -*-
import os.path, sys, subprocess,platform
import shutil, zipfile, urllib
if os.path.exists("dst"):
shutil.rmtree("dst")
os.makedirs("dst")
subprocess.call("mvn clean install -Dmaven.test.skip=true -U -fn", shell=True, cwd=fname)
12 回复
subprocess.call("mvn clean install -Dmaven.test.skip=true -U -fn", shell=True, cwd=fname)
这里的fname没有定义
@wendal 亲,最新一版本是你提交的啊,报
Traceback (most recent call last):
File "build.py", line 10, in <module>
subprocess.call("mvn clean install -Dmaven.test.skip=true -U -fn", shell=True, cwd=fname)
NameError: name 'fname' is not defined
添加回复
请先登陆