1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 19:43:33 +03: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

View File

@ -5,7 +5,7 @@ from __future__ import print_function
import os import os
import re import re
from globals import MYDIR from globals import PATH_LEARNXINY
class LearnXYAdapter(object): class LearnXYAdapter(object):
@ -13,7 +13,7 @@ class LearnXYAdapter(object):
Parent class of all languages adapters Parent class of all languages adapters
""" """
_learn_xy_path = os.path.join(MYDIR, "cheatsheets/learnxinyminutes-docs") _learn_xy_path = PATH_LEARNXINY
_replace_with = {} _replace_with = {}
_filename = '' _filename = ''
prefix = '' prefix = ''

View File

@ -24,11 +24,13 @@ if USE_OS_PACKAGES:
PATH_CHEAT_PAGES = "/usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/*" PATH_CHEAT_PAGES = "/usr/local/lib/python2.7/dist-packages/cheat/cheatsheets/*"
PATH_CHEAT_SHEETS = "/home/igor/cheat.sheets/sheets/" PATH_CHEAT_SHEETS = "/home/igor/cheat.sheets/sheets/"
PATH_CHEAT_SHEETS_SPOOL = "/home/igor/cheat.sheets/spool/" PATH_CHEAT_SHEETS_SPOOL = "/home/igor/cheat.sheets/spool/"
PATH_LEARNXINY = "/home/igor/git/github.com/adambard/learnxinyminutes-docs"
else: else:
PATH_TLDR_PAGES = os.path.join(MYDIR, "cheatsheets/tldr/*/*.md") PATH_TLDR_PAGES = os.path.join(MYDIR, "cheatsheets/tldr/*/*.md")
PATH_CHEAT_PAGES = os.path.join(MYDIR, "cheatsheets/cheat/*") PATH_CHEAT_PAGES = os.path.join(MYDIR, "cheatsheets/cheat/*")
PATH_CHEAT_SHEETS = os.path.join(MYDIR, "cheatsheets/sheets/") PATH_CHEAT_SHEETS = os.path.join(MYDIR, "cheatsheets/sheets/")
PATH_CHEAT_SHEETS_SPOOL = os.path.join(MYDIR, "cheatsheets/spool/") 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())) COLOR_STYLES = sorted(list(get_all_styles()))