DRYer
This commit is contained in:
parent
1fb118edee
commit
3e0f4d36bc
3
setup.py
3
setup.py
@ -877,7 +877,6 @@ def package(args, bundle_type):
|
|||||||
|
|
||||||
|
|
||||||
def clean():
|
def clean():
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
|
||||||
|
|
||||||
def safe_remove(*entries):
|
def safe_remove(*entries):
|
||||||
for x in entries:
|
for x in entries:
|
||||||
@ -986,7 +985,7 @@ def main():
|
|||||||
args = option_parser().parse_args()
|
args = option_parser().parse_args()
|
||||||
verbose = args.verbose > 0
|
verbose = args.verbose > 0
|
||||||
args.prefix = os.path.abspath(args.prefix)
|
args.prefix = os.path.abspath(args.prefix)
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
os.chdir(base)
|
||||||
if args.action == 'test':
|
if args.action == 'test':
|
||||||
os.execlp(
|
os.execlp(
|
||||||
sys.executable, sys.executable, 'test.py'
|
sys.executable, sys.executable, 'test.py'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user