Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/__main__.py
blob: e125930fc70b7b6680fa2b5a59356004196da9e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import importlib
import sys
import pathlib

# Load .git version before the builtin version
if pathlib.Path('./archinstall/__init__.py').absolute().exists():
	spec = importlib.util.spec_from_file_location("archinstall", "./archinstall/__init__.py")
	archinstall = importlib.util.module_from_spec(spec)
	sys.modules["archinstall"] = archinstall
	spec.loader.exec_module(sys.modules["archinstall"])
else:
	import archinstall

if __name__ == '__main__':
	archinstall.run_as_a_module()