<reponame>webdevhub42/Lambda
# Copyright (c) 2016 <NAME>.  All rights reserved.
# Written for https://pymotw.com
#
"""Find a configuration file
"""

# end_pymotw_header
import os
import shutil

path = os.pathsep.join([".", os.path.expanduser("~/pymotw")])

mode = os.F_OK | os.R_OK

filename = shutil.which("config.ini", mode=mode, path=path)

print(filename)

# Copyright (c) 2016 <NAME>.  All rights reserved.
# Written for https://pymotw.com
#
"""Find a configuration file
"""

# end_pymotw_header
import os
import shutil

path = os.pathsep.join([".", os.path.expanduser("~/pymotw")])

mode = os.F_OK | os.R_OK

filename = shutil.which("config.ini", mode=mode, path=path)

print(filename)
# Copyright (c) 2016 <NAME>.  All rights reserved. # Written for https://pymotw.com # Find a configuration file # end_pymotw_header