From 8bf71f10c7e7e56856cadb929d5719b4c15994ba Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Tue, 16 Oct 2018 10:17:37 -0400 Subject: [PATCH] Update path so the script can be run and import atst --- script/remove_sample_data.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script/remove_sample_data.py b/script/remove_sample_data.py index 16a3d3c7..e50b4870 100644 --- a/script/remove_sample_data.py +++ b/script/remove_sample_data.py @@ -1,3 +1,10 @@ +# Add root project dir to the python path +import os +import sys + +parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +sys.path.append(parent_dir) + import ctypes import sqlalchemy from sqlalchemy import or_, event as sqlalchemy_event