--- RD-Analyzer.py.old	2021-08-28 01:29:15.077556741 +0530
+++ RD-Analyzer.py	2021-08-28 01:30:08.610302668 +0530
@@ -29,7 +29,10 @@
 
 
 ## Global variables.
-dir = os.path.split(os.path.realpath(__file__))[0] # script directory
+# adapted for bioconda install
+data_directory = os.path.abspath(os.path.dirname(__file__) + '/../share/RD-Analyzer')
+dir = os.environ.get('RD_ANALYZER_DIR', data_directory)
+
 
 
 ######################################################
