Changeset 9685:2f4454afae71 in orange for Orange/misc/environ.py


Ignore:
Timestamp:
02/06/12 12:17:53 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Fix environ.install_dir to make doc datasets and other stuff work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/environ.py

    r9671 r9685  
    124124    orange_no_deprecated_members = "False" 
    125125     
    126     try: 
    127         install_dir = os.path.dirname(os.path.abspath(__file__)) # Orange/misc 
    128         install_dir = os.path.dirname(install_dir) # Orange/ 
    129         install_dir = os.path.dirname(install_dir) #  
    130     except Exception: # Why should this happen?? 
    131         raise 
    132         import orange 
    133         install_dir = os.path.dirname(os.path.abspath(orange.__file__)) 
     126    install_dir = os.path.dirname(os.path.abspath(__file__)) # Orange/misc 
     127    install_dir = os.path.dirname(install_dir) # Orange/ 
     128 
     129    print install_dir 
    134130 
    135131    doc_install_dir = os.path.join(install_dir, "doc")  
Note: See TracChangeset for help on using the changeset viewer.