From 366dfcecd7de73b9416364227fb053ee164a617a Mon Sep 17 00:00:00 2001 From: "Chen, Chien-ting" Date: Sat, 19 Jun 2021 18:29:07 +0800 Subject: [PATCH] fix importing error and add readme --- README.md | 13 +++++++++++-- src/Editor/ClochurLexer.py | 2 +- src/Editor/CustomQsciEditor.py | 2 +- src/Editor/Interpreter.py | 2 +- src/Editor/__init__.py | 12 ++++++------ 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 1783db6..f6a5e1e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ # Clochur -A Scheme-like typesetting LISP editor that using SILE typesetting Engine. +A Scheme-like typesetting LISP interpreter and editor that using SILE typesetting Engine. -彩虹模式上色:https://gist.github.com/Yoxem/d0dd68161185947416773edd93b96344 +== Packaging == + +To make a wheel package, run: + + python setup.py bdist_wheel + +and then: + + cd dist + pip3 install Clochur-x.y.z-py3-none-any.whl diff --git a/src/Editor/ClochurLexer.py b/src/Editor/ClochurLexer.py index 0f97ba2..a8458fe 100644 --- a/src/Editor/ClochurLexer.py +++ b/src/Editor/ClochurLexer.py @@ -4,7 +4,7 @@ import re from PyQt5.Qsci import QsciLexerCustom, QsciScintilla from PyQt5.QtGui import * -from Parser import Parser +from Editor.Parser import Parser diff --git a/src/Editor/CustomQsciEditor.py b/src/Editor/CustomQsciEditor.py index 4531381..66d731d 100644 --- a/src/Editor/CustomQsciEditor.py +++ b/src/Editor/CustomQsciEditor.py @@ -4,7 +4,7 @@ from PyQt5.QtGui import * from PyQt5.Qsci import QsciScintilla -from ClochurLexer import ClochurLexer +from Editor.ClochurLexer import ClochurLexer class CustomQsciEditor(QsciScintilla): def __init__(self, parent=None): diff --git a/src/Editor/Interpreter.py b/src/Editor/Interpreter.py index 86c26bf..03587c1 100644 --- a/src/Editor/Interpreter.py +++ b/src/Editor/Interpreter.py @@ -2,7 +2,7 @@ import re import xml.etree.ElementTree as ET -from Parser import Parser +from Editor.Parser import Parser ''' macro expansion for example: diff --git a/src/Editor/__init__.py b/src/Editor/__init__.py index e7bfa85..da6e61a 100755 --- a/src/Editor/__init__.py +++ b/src/Editor/__init__.py @@ -14,13 +14,13 @@ from PyQt5 import QtWebEngineWidgets from PyQt5.QtWidgets import * from PyQt5.Qsci import QsciScintilla -import qrc_resources +from Editor import qrc_resources -import __about__ -import FindReplace -from Interpreter import Interpreter, Lambda -import CustomQsciEditor -from Parser import Parser +from Editor import __about__ +from Editor import FindReplace +from Editor.Interpreter import Interpreter, Lambda +from Editor import CustomQsciEditor +from Editor.Parser import Parser sile_command = 'sile'