job.py (1908:73342b7d6f83) job.py (1916:fe8d4e92c0a7)
1#!/usr/bin/env python
2# Copyright (c) 2005 The Regents of The University of Michigan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 135 unchanged lines hidden (view full) ---

144 return self.dir
145
146if __name__ == '__main__':
147 rootdir = env.setdefault('ROOTDIR', os.getcwd())
148 pbs_jobid = env['PBS_JOBID']
149 pbs_jobname = env['PBS_JOBNAME']
150 basedir = joinpath(rootdir, 'Base')
151 jobname = env.setdefault('JOBNAME', pbs_jobname)
1#!/usr/bin/env python
2# Copyright (c) 2005 The Regents of The University of Michigan
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 135 unchanged lines hidden (view full) ---

144 return self.dir
145
146if __name__ == '__main__':
147 rootdir = env.setdefault('ROOTDIR', os.getcwd())
148 pbs_jobid = env['PBS_JOBID']
149 pbs_jobname = env['PBS_JOBNAME']
150 basedir = joinpath(rootdir, 'Base')
151 jobname = env.setdefault('JOBNAME', pbs_jobname)
152 jobfile = env.setdefault('JOBFILE', joinpath(basedir, 'test.py'))
152 jobfile = env.setdefault('JOBFILE', joinpath(rootdir, 'Test.py'))
153 outdir = env.setdefault('OUTPUT_DIR', joinpath(rootdir, jobname))
154 env['POOLJOB'] = 'True'
155
156 if os.path.isdir("/work"):
157 workbase = "/work"
158 else:
159 workbase = "/tmp/"
160

--- 81 unchanged lines hidden ---
153 outdir = env.setdefault('OUTPUT_DIR', joinpath(rootdir, jobname))
154 env['POOLJOB'] = 'True'
155
156 if os.path.isdir("/work"):
157 workbase = "/work"
158 else:
159 workbase = "/tmp/"
160

--- 81 unchanged lines hidden ---