I have a file path like this:
file_name = full_path + env + '/filename.txt'
in which:
- full_path is '/home/louis/key-files/
- env is 'prod'
=> file name is '/home/louis/key-files/prod/filename.txt'
I want to use os.path.join
file_name = os.path.abspath(os.path.join(full_path, env, '/filename.txt'))
But the returned result is only: file_name = '/filename.txt'
How can I get the expected result like above? Thanks