packages/bddeb: fix pep8 warnings. no other changes.
This commit is contained in:
parent
5f358050ce
commit
18022594b1
@ -10,7 +10,8 @@ def find_root():
|
||||
# expected path is in <top_dir>/packages/
|
||||
top_dir = os.environ.get("CLOUD_INIT_TOP_D", None)
|
||||
if top_dir is None:
|
||||
top_dir = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0])))
|
||||
top_dir = os.path.dirname(
|
||||
os.path.dirname(os.path.abspath(sys.argv[0])))
|
||||
if os.path.isfile(os.path.join(top_dir, 'setup.py')):
|
||||
return os.path.abspath(top_dir)
|
||||
raise OSError(("Unable to determine where your cloud-init topdir is."
|
||||
|
Loading…
Reference in New Issue
Block a user