From af7cd8c200a7d5dafac4ab2e5afdc1978bd3d308 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sat, 29 Oct 2022 17:02:10 +0200 Subject: Don't use relative imports --- combine.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'combine.sh') diff --git a/combine.sh b/combine.sh index bea824b..53cf7fe 100755 --- a/combine.sh +++ b/combine.sh @@ -1,6 +1,6 @@ #!/bin/bash -contents="$(cat slack/*.py slack.py | grep -Ev '^from (\.|slack)')" +contents="$(cat slack/*.py slack.py | grep -Ev '^from slack[. ]')" echo "$contents" | grep '^from __future__' | sort -u > combined.py echo "$contents" | grep -v '^from __future__' | grep -E '^(import|from)' | sort -u >> combined.py -- cgit