mirror of
https://github.com/thib8956/advent-of-code.git
synced 2026-02-27 18:58:14 +00:00
chore: make intcode an installable package
- Move intcode/ from 2019/ folder to the root of the repository - The package is automatically installed with the adventofcode package with `pip install -e .` command
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
# TODO replace PYTHONPATH hack with a proper solution, like making intcode an
|
||||
# installed module https://stackoverflow.com/a/50194143
|
||||
import sys
|
||||
from pathlib import Path
|
||||
sys.path.append(str(Path(__file__).absolute().parent.parent / "intcode"))
|
||||
from intcode import interpret_intcode, Interpreter
|
||||
from adventofcode.intcode import interpret_intcode, Interpreter
|
||||
|
||||
|
||||
def paint(program, initial_state):
|
||||
|
||||
Reference in New Issue
Block a user