Simu: Python's import system is too hard for me

This commit is contained in:
Eric-Teunis de Boone 2022-03-24 15:45:40 +01:00
parent a50f6640a4
commit e4af62e51d
3 changed files with 15 additions and 10 deletions

View file

@ -2,10 +2,12 @@
import numpy as np
import scipy.interpolate as interp
try:
from .signal import *
except ImportError:
from signal import *
if __name__ == "__main__" and __package__ is None:
import sys
sys.path.append("../../")
__package__ = "lib.signals"
from .signal import *
class DigitisedSignal(Signal):
"""