mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
spawn: expand AUR_CONFIG to the full path
This allows using a relative path for the config. PHP didn't play well with it. Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
8c28ba6e7f
commit
83d228d9e8
1 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ configuration anyway.
|
|||
import argparse
|
||||
import atexit
|
||||
import os
|
||||
import os.path
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
@ -87,6 +88,9 @@ def start():
|
|||
return
|
||||
atexit.register(stop)
|
||||
|
||||
if 'AUR_CONFIG' in os.environ:
|
||||
os.environ['AUR_CONFIG'] = os.path.realpath(os.environ['AUR_CONFIG'])
|
||||
|
||||
try:
|
||||
terminal_width = os.get_terminal_size().columns
|
||||
except OSError:
|
||||
|
|
Loading…
Add table
Reference in a new issue