Is it possible to use the data given in a variable in some other function other than the chdir () of the Python OS module?
I noticed that it is not possible to use variables in directory exchange using this method. Was there another of the kind? (may be from another module inclusive).
The idea would look like this:
import os
def mudardir():
a = 'Python'
os.chdir('C:/Users/','a','diretoriob')
mudardir()
As I do not know what the user name is and the Windows variable % userprofile% is not supported by the method, so I thought I'd set it before and then use it inside the function!
I am grateful for the attention of all!