I want to be able to pass in a filepath to my python function as a parameter. To be able to make my code reliable , if any other dev was to run my code on their machine , the file path would change based on the name of the user. How can i make this change dynamically within python.
For example my function takes the following arguments :
def f_path(path):
my path will be : /Users/jame/Desktop/data-code/Testdata
i want to be able to change this file path dynamically by changing my name 'jame' to the current user's name .