I am getting TypeError: a bytes-like object is required, not 'str' in the following line of code in python3.5.
path = os.getcwd().strip('/n') Null,userprof = subprocess.check_output('set USERPROFILE', shell=True).split('=')
Decode before using split funtion
split
Null,userprof = subprocess.check_output('set USERPROFILE', shell=True).decode('utf-8').split('=')