diff options
author | Przemysław Kołodziejczyk <eshlox@vertolabs.com> | 2018-11-12 21:09:25 +0300 |
---|---|---|
committer | Przemysław Kołodziejczyk <eshlox@vertolabs.com> | 2018-11-12 21:09:25 +0300 |
commit | 8e5c17023876ecc58865a3fa5502d9b14734a207 (patch) | |
tree | 088cfa4926a68b0376d53c756459be8100a89550 /exampleSite | |
parent | 026c2295b737f323ee18caee22cf4219bbdbc2dd (diff) |
Fix pre/code background color
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/content/posts/2017/code.md | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/exampleSite/content/posts/2017/code.md b/exampleSite/content/posts/2017/code.md index d29c7de..a5bf777 100644 --- a/exampleSite/content/posts/2017/code.md +++ b/exampleSite/content/posts/2017/code.md @@ -23,6 +23,19 @@ if filename and os.path.isfile(filename): ```python import os +# Very long line, very long line, very long line, very long line, very long line, very long line, very long line, very long line. +filename = os.environ.get('PYTHONSTARTUP') +if filename and os.path.isfile(filename): + with open(filename) as fobj: + startup_file = fobj.read() + exec(startup_file) +``` + +--- + +```python +import os + filename = os.environ.get('PYTHONSTARTUP') if filename and os.path.isfile(filename): with open(filename) as fobj: |