diff --git a/lib/adapter_learnxiny.py b/lib/adapter_learnxiny.py index eeb7ffc..7afd576 100644 --- a/lib/adapter_learnxiny.py +++ b/lib/adapter_learnxiny.py @@ -5,7 +5,7 @@ from __future__ import print_function import os import re -from globals import MYDIR +from globals import PATH_LEARNXINY class LearnXYAdapter(object): @@ -13,7 +13,7 @@ class LearnXYAdapter(object): Parent class of all languages adapters """ - _learn_xy_path = os.path.join(MYDIR, "cheatsheets/learnxinyminutes-docs") + _learn_xy_path = PATH_LEARNXINY _replace_with = {} _filename = '' prefix = '' diff --git a/lib/globals.py b/lib/globals.py index 4cbcaef..c285369 100644 --- a/lib/globals.py +++ b/lib/globals.py @@ -24,11 +24,13 @@ if USE_OS_PACKAGES: PATH_CHEAT_PAGES = "/usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/*" PATH_CHEAT_SHEETS = "/home/igor/cheat.sheets/sheets/" PATH_CHEAT_SHEETS_SPOOL = "/home/igor/cheat.sheets/spool/" + PATH_LEARNXINY = "/home/igor/git/github.com/adambard/learnxinyminutes-docs" else: PATH_TLDR_PAGES = os.path.join(MYDIR, "cheatsheets/tldr/*/*.md") PATH_CHEAT_PAGES = os.path.join(MYDIR, "cheatsheets/cheat/*") PATH_CHEAT_SHEETS = os.path.join(MYDIR, "cheatsheets/sheets/") PATH_CHEAT_SHEETS_SPOOL = os.path.join(MYDIR, "cheatsheets/spool/") + PATH_LEARNXINY = os.path.join(MYDIR, "cheatsheets/learnxinyminutes-docs") COLOR_STYLES = sorted(list(get_all_styles()))