Changeset 2499 for trunk/python
- Timestamp:
- 05/11/12 15:25:52 (13 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/env.py
r2090 r2499 51 51 not os.path.exists(os.environ["CASAPATH"].split()[0]+"/data"): 52 52 os.environ["CASAPATH"] = "%s %s somwhere" % ( asapdata, plf) 53 53 54 # set up user space 54 userdir = os.environ["HOME"]+"/.asap" 55 if not os.path.exists(userdir): 56 print 'First time ASAP use. Setting up ~/.asap' 57 os.mkdir(userdir) 58 if not is_casapy(): 59 shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 60 userdir+"/ipy_user_conf.py") 61 f = file(userdir+"/asapuserfuncs.py", "w") 62 f.close() 63 f = file(userdir+"/ipythonrc", "w") 64 f.close() 65 else: 66 if not is_casapy(): 67 # upgrade to support later ipython versions 68 if not os.path.exists(userdir+"/ipy_user_conf.py"): 69 shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 70 userdir+"/ipy_user_conf.py") 55 # userdir = os.environ["HOME"]+"/.asap" 56 # if not os.path.exists(userdir): 57 # print 'First time ASAP use. Setting up ~/.asap' 58 # os.makedirs(os.path.join(userdir, "profile_default")) 59 # if not is_casapy(): 60 # shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 61 # userdir+"/ipy_user_conf.py") 62 # shutil.copyfile(asapdata+"/data/ipython_config.py", 63 # userdir+"/profile_default/ipython_config.py") 64 # f = file(userdir+"/asapuserfuncs.py", "w") 65 # f.close() 66 # f = file(userdir+"/ipythonrc", "w") 67 # f.close() 68 # else: 69 # if not is_casapy(): 70 # # upgrade to support later ipython versions 71 72 # if not os.path.exists(userdir+"/ipy_user_conf.py"): 73 # shutil.copyfile(asapdata+"/data/ipy_user_conf.py", 74 # userdir+"/ipy_user_conf.py") 75 # if not os.path.exists(userdir+"/profile_default/ipython_config.py"): 76 # shutil.copyfile(asapdata+"/data/ipython_config.py", 77 # userdir+"/profile_default/ipython_config.py") 78 71 79 72 80 def get_revision(): -
trunk/python/ipysupport.py
r1824 r2499 7 7 8 8 # workaround for ipython, which redirects this if banner=0 in ipythonrc 9 sys.stdout = sys.__stdout__10 sys.stderr = sys.__stderr__9 #sys.stdout = sys.__stdout__ 10 #sys.stderr = sys.__stderr__ 11 11 12 12 def version():
Note:
See TracChangeset
for help on using the changeset viewer.