Commit a17f0f90 by Mustafa Tekpinar

Removed $ESGEMME_PATH dependency for default.conf.

parent 16b622fa
......@@ -27,8 +27,8 @@ import biotite.structure.io as strucio
import biotite.application.dssp as dssp
import biotite.structure.io.pdb as pdb
#from gemmeAnal import *
import importlib.resources
from importlib.resources import files, as_file
import pandas as pd
def selectMaxFastaSequences(inputMSAfile, outputMSAfile, maxNumSeqs=40001):
......@@ -203,11 +203,14 @@ def launchJET(prot, retMet, bFile, fFile, pdbfile, chains, n, N, nl):
chainID = chains[0]
#TODO: Remove Bash dependency here. Make the copying process in Python
#subprocess.call("cp $ESGEMME_PATH/default.conf .",shell=True)
esgemme_path = os.path.expandvars ('$ESGEMME_PATH')
shutil.copy2(os.path.join(esgemme_path, "default.conf"), os.getcwd())
# esgemme_path = os.path.expandvars ('$ESGEMME_PATH')
# shutil.copy2(os.path.join(esgemme_path, "default.conf"), os.getcwd())
# esgemme_default_conf_path = importlib.resources.path('esgemme', 'default.conf')
# print(esgemme_default_conf_path)
source = files('esgemme').joinpath('default.conf')
with as_file(source) as esgemme_default_conf_path:
#third_party_api_requiring_file_system_path(eml)
shutil.copy2(esgemme_default_conf_path, os.getcwd())
if retMet=="input":
......
......@@ -63,5 +63,7 @@ setup(name='esgemme',
'console_scripts': [
'esgemme=esgemme.esgemme:main'
]
}
},
include_package_data=True,
package_data={'esgemme':['default.conf']},
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment