Guest User

Untitled

a guest
Jul 10th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from sys import platform
  2. from pathlib import Path
  3. from os.path import expanduser
  4.  
  5. if platform == "linux" or platform == "linux2":
  6.     config_directory = Path(expanduser("~")+'/.local/share/gogrepopy/')
  7. elif platform == "darwin":
  8.     config_directory = Path(expanduser("~")+'/whatever/osx/uses/gogrepopy/')
  9. elif platform == "win32":
  10.     config_directory = Path(expanduser("~")+'/Documents/gogrepopy/')
  11. print(config_directory)
Add Comment
Please, Sign In to add comment