externing.py (pymol-v2.1.0.tar.bz2) | : | externing.py (pymol-open-source-2.2.0) | ||
---|---|---|---|---|
skipping to change at line 56 | skipping to change at line 56 | |||
SEE ALSO | SEE ALSO | |||
pwd, ls, system | pwd, ls, system | |||
''' | ''' | |||
dir = exp_path(dir) | dir = exp_path(dir) | |||
try: | try: | |||
os.chdir(dir) # raises on error | os.chdir(dir) # raises on error | |||
if not quiet: | if not quiet: | |||
print(" cd: now in %s" % getcwdu()) | print(" cd: now in %s" % getcwdu()) | |||
except: | except BaseException as e: | |||
if complain: | if complain: | |||
traceback.print_exc() | raise pymol.CmdException(str(e)) | |||
return DEFAULT_SUCCESS | return DEFAULT_SUCCESS | |||
def pwd(): | def pwd(): | |||
''' | ''' | |||
DESCRIPTION | DESCRIPTION | |||
Print current working directory. | Print current working directory. | |||
USAGE | USAGE | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |