Skip to content
Snippets Groups Projects
Commit 071ddb31 authored by Blake Fitch's avatar Blake Fitch
Browse files

clean up relative paths

parent 3359e0bd
No related branches found
Tags STAG-2024-05-04-09-11-44
No related merge requests found
...@@ -520,7 +520,6 @@ def confirmed_put( irods_sesh, file_pathname, new_obj_ipath, metadata_dict=None, ...@@ -520,7 +520,6 @@ def confirmed_put( irods_sesh, file_pathname, new_obj_ipath, metadata_dict=None,
# Bring in the experiment validation code # Bring in the experiment validation code
sys.path.append(os.path.join(os.path.dirname(__file__), '../mrdata_irods_config')) sys.path.append(os.path.join(os.path.dirname(__file__), '../mrdata_irods_config'))
#sys.path.append('../mrdata_irods_config')
import mrdata_irods_config as miconf import mrdata_irods_config as miconf
...@@ -568,13 +567,11 @@ def SetupExperimentInIRODS( irods_sesh, irods_zone, irods_user, exp_dict, logger ...@@ -568,13 +567,11 @@ def SetupExperimentInIRODS( irods_sesh, irods_zone, irods_user, exp_dict, logger
return True, "Succeed" return True, "Succeed"
print( "os.path[0]: " + sys.path[0] ) #import pathlib
import pathlib #pypath = pathlib.Path(__file__).resolve().parent
pypath = pathlib.Path(__file__).resolve().parent #modpath = os.path.join( pypath, "../experiment_id" )
print( f"pypath {pypath}" ) #sys.path.append( modpath )
modpath = os.path.join( pypath, "../experiment_id" ) sys.path.append(os.path.join(os.path.dirname(__file__), '../experiment_id'))
print( f"modpath: {modpath}" )
sys.path.append( modpath )
import experiment_id as exp_id_fx import experiment_id as exp_id_fx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment