Commit 56dd1078 authored by Denis Bilenko's avatar Denis Bilenko

make_dist.py: restore chdir

parent b6aa6ce7
......@@ -46,7 +46,15 @@ def iter_status(command):
yield line[:1], line[1:].strip()
def make_dist(version='dev', fast=False, revert=False):
def make_dist(*args, **kwargs):
cwd = os.getcwd()
try:
return _make_dist(*args, **kwargs)
finally:
os.chdir(cwd)
def _make_dist(version='dev', fast=False, revert=False):
assert exists('gevent/__init__.py'), 'Where am I?'
basedir = abspath(os.getcwd())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment