From a0066c99b48f331c7e8f19558412ce32455ebb5f Mon Sep 17 00:00:00 2001 From: Juni Kim Date: Tue, 13 Dec 2022 21:55:41 -0500 Subject: [PATCH] current directory --- make_prob.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_prob.py b/make_prob.py index d05c633..1956831 100755 --- a/make_prob.py +++ b/make_prob.py @@ -5,8 +5,8 @@ import subprocess import shutil # set up this in order to point to proper directory. -setup_dir = "/home/junikim/cp" -os.environ["CP_SETUP_DIR"] = setup_dir +setup_dir = os.path.dirname(__file__) +os.environ["CP_SETUP_DIR"] = os.path.dirname(__file__) parser = argparse.ArgumentParser()