de5a2fcd41cca18e344eb276ae627590018592b6,ilastik.py,,_clean_paths,#Any#,27

Before Change


    // remove undesired paths from PYTHONPATH and add ilastik"s submodules
    pythonpath = [k for k in sys.path if k.startswith(ilastik_dir)]
    for k in ["/ilastik/lazyflow", "/ilastik/volumina", "/ilastik/ilastik"]:
        pythonpath.append(ilastik_dir + k.replace("/", os.path.sep))
    sys.path = pythonpath
    
    if sys.platform.startswith("win"):
        // empty PATH except for gurobi and CPLEX and add ilastik"s installation paths

After Change


                      k.count("windows\\system32") > 0]
        for k in ["/Qt4/bin", "/Library/bin", "/python", "/bin"]:
            new_path = ilastik_dir + k.replace("/", os.path.sep)
            if os.path.isdir(new_path):
                path.append(new_path)
        os.environ["PATH"] = os.pathsep.join(reversed(path))
    else:
        // clean LD_LIBRARY_PATH and add ilastik"s installation paths
        // (gurobi and CPLEX are supposed to be located there as well)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: ilastik/ilastik
Commit Name: de5a2fcd41cca18e344eb276ae627590018592b6
Time: 2015-08-31
Author: ullrich.koethe@iwr.uni-heidelberg.de
File Name: ilastik.py
Class Name:
Method Name: _clean_paths


Project Name: CyberReboot/NetworkML
Commit Name: 5693d21f5b1c0f2532cca3e1c6bc8af8acdfb85f
Time: 2020-04-21
Author: josh@vandervecken.com
File Name: networkml/parsers/pcap_to_csv.py
Class Name: PCAPToCSV
Method Name: main


Project Name: pantsbuild/pants
Commit Name: 019b8852ac95bf8533d6a9938d69a138091e2a61
Time: 2013-02-04
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_task.py
Class Name: JvmTask
Method Name: classpath