Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Folder operations
- ======
- Check for existence and create
- ---------
- ```python
- if not os.path.exists( export_directory ) :
- os.makedirs(export_directory)
- os.mkdir(export_directory)
- ```
- Get the base directory
- ----------
- ```python
- parent_folder_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
- ````
Add Comment
Please, Sign In to add comment