16 lines
680 B
Diff
16 lines
680 B
Diff
--- asciidoc-8.6.7/asciidoc.py.orig 2012-03-14 03:07:34 +0400
|
|
+++ asciidoc-8.6.7/asciidoc.py 2012-03-27 18:16:41 +0400
|
|
@@ -4556,6 +4556,12 @@
|
|
APP_FILE = os.path.realpath(cmd)
|
|
global APP_DIR
|
|
APP_DIR = os.path.dirname(APP_FILE)
|
|
+ global CONF_DIR
|
|
+ if not os.path.isdir (CONF_DIR) and os.name == 'nt':
|
|
+ app_dir_real = os.path.realpath (APP_DIR)
|
|
+ app_prefix, app_last_dir = os.path.split (app_dir_real)
|
|
+ if len (app_prefix) > 0 and app_last_dir == 'bin':
|
|
+ CONF_DIR = os.path.join (app_prefix, 'etc', 'asciidoc')
|
|
global USER_DIR
|
|
USER_DIR = userdir()
|
|
if USER_DIR is not None:
|