Commit 8e8de92c authored by Jerome Mariette's avatar Jerome Mariette

fixe a bug introduced with changing to src directory

parent 27493120
......@@ -225,7 +225,8 @@ if __name__ == '__main__':
if add_path:
add_path = add_path.extend(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
else:
add_path = [os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')]
add_path = [os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'),
os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..')]
path = ""
for apath in add_path:
path += "sys.path.insert(0, '" + apath + "')\n"
......
......@@ -24,7 +24,8 @@
> if add_path:
> add_path = add_path.extend(os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
> else:
> add_path = [os.path.join(os.path.dirname(os.path.realpath(__file__)), '..')]
> add_path = [os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'),
> os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..')]
> path = ""
> for apath in add_path:
> path += "sys.path.insert(0, '" + apath + "')\n"
......
......@@ -37,7 +37,7 @@ __status__ = 'beta'
from igraph import *
from optparse import *
import os, math, datetime, zlib, sys, re, glob, string, gzip
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..'))
sys.path.insert(0, os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'src'))
import ng6.seqio as seqio
......
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