mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-13 12:09:35 +03:00
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():
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
def safe_remove(*entries):
|
||||
for x in entries:
|
||||
@ -986,7 +985,7 @@ def main():
|
||||
args = option_parser().parse_args()
|
||||
verbose = args.verbose > 0
|
||||
args.prefix = os.path.abspath(args.prefix)
|
||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||
os.chdir(base)
|
||||
if args.action == 'test':
|
||||
os.execlp(
|
||||
sys.executable, sys.executable, 'test.py'
|
||||
|
Loading…
Reference in New Issue
Block a user