Reputation: 695
In windows I run my tests and the framework will create the folders "C:\SAF\OutputData\Screenshots" and will save all the screenshots.
But, How can I create a equivalent Folder structure \SAF\OutputData\Screenshots on MAC using python?
Upvotes: 0
Views: 2308
Reputation: 9726
Same as in Windows, by using os.makedirs
. Note that:
/
) as the path delimiter. You can use os.path.join
to make this part of your code platform-independent.Upvotes: 1