Changeset 4930

Show
Ignore:
Timestamp:
06/27/09 14:33:59 (4 years ago)
Author:
luis
Message:

Fixing #334 - import error when umit is installed from package

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/install_scripts/common.py

    r4386 r4930  
    77BIN_DIRNAME = 'bin' 
    88UMIT_MAIN = os.path.join(BIN_DIRNAME, 'umit') 
    9  
     9UMIT_SCHEDULER = os.path.join(BIN_DIRNAME, 'umit_scheduler.py') 
    1010# These directories are relative to the installation or dist directory 
    1111# Ex: python setup.py install --prefix=/tmp/umit 
  • trunk/setup.py

    r4474 r4930  
    312312 
    313313    def set_modules_path(self): 
    314         umit_name = os.path.split(common.UMIT_MAIN)[1] 
     314        # UMIT_MAIN 
     315        self._replace_path(common.UMIT_MAIN) 
     316        # UMIT_SCHEDULER 
     317        self._replace_path(os.path.join(common.UMIT_SCHEDULER)) 
     318         
     319    def _replace_path(self, file): 
     320        umit_name = os.path.split(file)[1] 
    315321        umit = os.path.join(self.install_scripts, umit_name) 
    316322        modules = self.install_lib 
     
    336342        ufile.writelines(ucontent) 
    337343        ufile.close() 
    338  
     344         
    339345    def set_perms(self): 
    340346        re_bin = re.compile("(bin)")