I want to create the file inside the folder of line 1 that is created at the same level where the file.txt is created
os.mkdir(svnombreRP.get())
archi = open('%s.txt' % svnombreRP.get(), 'wb')
archi.close()
I tried to put it like this:
os.mkdir(svnombreRP.get())
archi = open('%s/%s.txt' % svnombreRP.get(), 'wb')
archi.close()
Since I want the file to be named like the directory, the name is given by the function svnombreRP.get () but it is not saved in the directory, it is stored next to the directory.