Commit 83d228d9 authored by Filipe Laíns's avatar Filipe Laíns 🌈 Committed by Lukas Fleischer
Browse files

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's avatarFilipe Laíns <lains@archlinux.org>
Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
parent 8c28ba6e
...@@ -11,6 +11,7 @@ configuration anyway. ...@@ -11,6 +11,7 @@ configuration anyway.
import argparse import argparse
import atexit import atexit
import os import os
import os.path
import subprocess import subprocess
import sys import sys
import tempfile import tempfile
...@@ -87,6 +88,9 @@ def start(): ...@@ -87,6 +88,9 @@ def start():
return return
atexit.register(stop) atexit.register(stop)
if 'AUR_CONFIG' in os.environ:
os.environ['AUR_CONFIG'] = os.path.realpath(os.environ['AUR_CONFIG'])
try: try:
terminal_width = os.get_terminal_size().columns terminal_width = os.get_terminal_size().columns
except OSError: except OSError:
......
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