Commit fc5c6d15 authored by eckhart's avatar eckhart

small changes

parent e538c4e7
# Visual Studio Code environment info for DHParser
PYTHONPATH=${workspaceFolder}:${PYTHONPATH}
{
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Aktuelle Datei",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
\ No newline at end of file
{
"python.pythonPath": "/bin/python",
"python.pythonPath": "venv/bin/python",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"python.testing.nosetestArgs": [
......
......@@ -1413,6 +1413,7 @@ class EBNFCompiler(Compiler):
refined = ""
except KeyError:
# rule represents a procedure name
nd = self.tree
refined = rule
if refined:
refined_rules.append(refined)
......@@ -1916,7 +1917,7 @@ class EBNFCompiler(Compiler):
return self.cache_literal_symbols.get(nd.content, None)
return None
literals = [] # type: List[List[int, str]]
literals = [] # type: List[List]
for i, child in enumerate(node.children):
content = literal_content(child)
if content is not None:
......
......@@ -1441,11 +1441,7 @@ def detach_server(host: str = USE_DEFAULT_HOST,
# global python_interpreter_name_cached
host, port = substitute_default_host_and_port(host, port)
null_device = " >/dev/null" if platform.system() != "Windows" else " > NUL"
interpreter = sys.executable
# 'python3' if os.system('python3 -V' + null_device) == 0 else 'python'
# interpreter = '/home/eckhart/.local/bin/python3.8'
# interpreter = "pypy3"
logging = '' # type: str
if is_logging() and get_config_value('log_server'):
logging = LOGGING_BLOCK.format(LOGDIR=get_config_value('log_dir').replace('\\', '\\\\'),
......
This diff is collapsed.
This diff is collapsed.
......@@ -62,7 +62,7 @@ class LaTeXGrammar(Grammar):
paragraph = Forward()
tabular_config = Forward()
text_element = Forward()
source_hash__ = "9cdd296d792cc550083617e1a0a31dbf"
source_hash__ = "a09a973a846b936cf8617fad4156affd"
anonymous__ = re.compile('_WSPC$|_GAP$|_LB$|_PARSEP$|block_environment$|known_environment$|text_element$|line_element$|inline_environment$|known_inline_env$|begin_inline_env$|end_inline_env$|command$|known_command$')
static_analysis_pending__ = [] # type: List[bool]
parser_initialization__ = ["upon instantiation"]
......
import sys
print('sys.path:')
for p in sys.path:
print(p)
print('')
print('PYTHONPATH')
import os
if "PYTHONPATH" in os.environ:
print(os.environ['PYTHONPATH'])
else:
print('PYTHONPATH not set')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment