Ignore:
Timestamp:
03/19/14 18:29:13 (11 years ago)
Author:
cborstad
Message:

CHG: cleaning up python imports. Use "m" prefix when using MatlabFuncs so that users can track down where these functions are defined rather than assuming they are mysterious python built-ins. Avoid importing * when possible, which cleans up the namespace and makes sure each module imports only what it needs (and that modules are not using functions imported by another module, which can break the code if modules are moved around)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/os/issmscpout.py

    r17126 r17480  
    22import subprocess
    33import os
    4 from MatlabFuncs import *
     4import MatlabFuncs as m
    55
    66def issmscpout(host,path,login,port,packages):
     
    1616        #if hostname and host are the same, do a simple copy
    1717
    18         if strcmpi(host,hostname):
     18        if m.strcmpi(host,hostname):
    1919                for package in packages:
    2020                        here=os.getcwd()
     
    2727                        os.chdir(here)
    2828        else:
    29                 if ispc():
     29                if m.ispc():
    3030                        #use the putty project pscp.exe: it should be in the path.
    3131               
Note: See TracChangeset for help on using the changeset viewer.