Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _make_sub_dir(path, genome):
"""
create submission scripts directory
:param str path: path where the submission scripts directory should be created
:param str genome: name of the genome
:return str: created path
"""
path = os.path.join(expandpath(path), "submission_scripts", genome)
if not os.path.exists(path):
os.makedirs(path)
return path