feat: Add run_migration.py to resolve Python module import issues
This commit is contained in:
parent
8c11af9c05
commit
a4bf153097
12
src/run_migration.py
Normal file
12
src/run_migration.py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
# Add the src directory to the Python path
|
||||||
|
src_path = str(Path(__file__).parent)
|
||||||
|
if src_path not in sys.path:
|
||||||
|
sys.path.append(src_path)
|
||||||
|
|
||||||
|
from migrations.add_direction_field import migrate_trades
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
migrate_trades()
|
||||||
Loading…
Reference in New Issue
Block a user