We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c9855 commit c6ff4efCopy full SHA for c6ff4ef
009/newpost.py
@@ -6,8 +6,8 @@
6
7
import requests
8
9
-PYB_CONTENT_DIR = os.environ.get('PYB_CONTENT_DIR') \
10
- or sys.exit('Set PYB_CONTENT_DIR env var')
+PYB_CONTENT_DIR = os.environ.get('PYB_CONTENT_DIR') or os.path.expanduser('~')
+print(PYB_CONTENT_DIR); sys.exit()
11
LOGGED_IN_USER = os.getlogin()
12
DEFAULT_HOURS = 2
13
DEFAULT_IMAGE, SPECIAL_IMAGE = 'pb-article.png', 'pb-special.png'
0 commit comments