I have a function like this:
def __init__(self, out_file='out.csv', tmp_folder=None):
self.tmp_folder = tmp_folder if tmp_folder != None else join(getcwd(), '__tmp__')
I was wondering if ther exists a smarter way to do it, something like js:
self.tmp_folder = tmp_folder || join(getcwd(), '__tmp__')
tmp_folder or join(getcwd(), '__tmp__')