Преглед изворни кода

Fix org-export-get-environment is void

The error below occurs when I do "make publish".
```
Symbol's function definition is void: org-export-get-environment
ERROR: Could not process ./2016-01-aerosolve-demo-image-impressionism.org
  | CalledProcessError: Command '[u'/usr/local/bin/emacs', '-Q', '--batch', '-l', '/home/zhang/blog/plugins/org_reader/org_reader.el', '--eval', '(org->pelican "/home/zhang/blog/src/content/2016-01-aerosolve-demo-image-impressionism.org" \'html)']' returned non-zero exit status 255
```

I found the solution in https://github.com/getpelican/pelican-plugins/issues/461, and it works.

My envirment:
GNU Emacs 24.5.1
pelican 3.6.3
Andrew пре 9 година
родитељ
комит
32f3d58b1b
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      org_reader/org_reader.el

+ 1 - 0
org_reader/org_reader.el

@@ -1,5 +1,6 @@
 (require 'json)
 (require 'org)
+(require 'ox)
 (defun org->pelican (filename backend)
   (progn
     (save-excursion