Changeset 4135 for trunk/umit_scheduler.py
- Timestamp:
- 02/20/09 03:04:09 (4 years ago)
- Files:
-
- 1 modified
-
trunk/umit_scheduler.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/umit_scheduler.py
r4099 r4135 67 67 68 68 69 def setup_homedir(usethis ):69 def setup_homedir(usethis, force=False): 70 70 """ 71 71 Setting umit home directory. 72 72 """ 73 Path.force_set_umit_conf(usethis) 73 if force: 74 Path.force_set_umit_conf(usethis) 75 else: 76 Path.set_umit_conf(usethis) 74 77 75 78 global HOME_CONF, RUNNING_FILE … … 117 120 118 121 if CONFIG_DIR: # forcing especified dir 119 setup_homedir(CONFIG_DIR )122 setup_homedir(CONFIG_DIR, force=True) 120 123 else: 121 124 try: 122 setup_homedir(sys.argv[2] )125 setup_homedir(sys.argv[2], force=True) 123 126 except IndexError: # no path especified 124 setup_homedir(os.path. join(os.path.expanduser("~"), '.umit'))127 setup_homedir(os.path.expanduser("~")) 125 128 126 129 return main(sys.argv[1:]) … … 129 132 if FROZEN_CFG is not None: 130 133 def write_frozen_cfg(): 131 setup_homedir(os.path. join(os.path.expanduser('~'), '.umit'))134 setup_homedir(os.path.expanduser('~')) 132 135 conf = open(FROZEN_CFG, 'w') 133 136 conf.write(HOME_CONF)
