-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtexmaker.py
More file actions
28 lines (26 loc) · 718 Bytes
/
texmaker.py
File metadata and controls
28 lines (26 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import re
def mappathf(path):
with open('/tmp/paths.txt', 'a') as f:
f.write("------path--------\n")
f.write(path)
f.write("\n")
#if re.search(r'([^;]*)/([^;]*)/([^;]*)/([^;]*)/([^;]*)/texmaker/',path):
if path=="/":
p = '/?username=domino&password=domino'
else:
p = path
with open('/tmp/paths.txt', 'a') as f:
f.write(p)
f.write("\n------end--------\n")
return p
def setup_texmaker():
return {
'command': ['/var/opt/workspaces/texmaker/start.sh'],
'port': 8080,
'timeout': 300,
'absolute_url': True,
'mappath' : mappathf,
'launcher_entry': {
'title': 'Texmaker: Login domino/domino'
}
}