1
0
mirror of https://github.com/chubin/cheat.sh.git synced 2026-06-20 21:26:44 +02:00

parametrized PATH_LEARNXINY

This commit is contained in:
Igor Chubin
2018-07-29 21:16:30 +00:00
parent 17fad757db
commit 3910cfe6eb
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -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 = ''
+2
View File
@@ -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()))