diff --git a/readtree.py b/readtree.py deleted file mode 100644 index a7b4943..0000000 --- a/readtree.py +++ /dev/null @@ -1,22 +0,0 @@ -# def treenewck(): -# script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) -# path = os.path.join(script_dir, 'nexus') -# for filename in glob.glob(os.path.join(path, '*.tre*')): -# f = open(filename, 'r').read() - -import re, os, glob, itertools, fnmatch, sys, shutil -# dirname, filename = os.path.split(os.path.abspath(__file__)) -def treenewick(): - script_dir = os.path.dirname(os.path.realpath(sys.argv[0])) -# print script_dir - path = os.path.join(script_dir, 'tree.tre') - with open(path, 'r') as content: - newick = content.read() - return newick -a = treenewick() -print a - - -# dirname, filename = os.path.split(os.path.abspath(__file__)) -# print "running from", dirname -# print "file is", filename \ No newline at end of file