2021-11-24, 04:45
Hi there,
Im wondering if there is a way to write these lines somehow to be 2 and 3 compatible
os.makedirs(drive + 'addons', exist_ok=True) ####################### PYTHON 3 ########################
if not os.path.exists(drive + addons): ####################### PYTHON 2 ########################
os.makedirs(drive + addons) ####################### PYTHON 2 ########################
Im wondering if there is a way to write these lines somehow to be 2 and 3 compatible
os.makedirs(drive + 'addons', exist_ok=True) ####################### PYTHON 3 ########################
if not os.path.exists(drive + addons): ####################### PYTHON 2 ########################
os.makedirs(drive + addons) ####################### PYTHON 2 ########################