Skip to content

Commit

Permalink
further fixes for pip support
Browse files Browse the repository at this point in the history
  • Loading branch information
Andre Luckow committed Jul 7, 2012
1 parent 998ecde commit 6868cdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.80
0.4.84
5 changes: 4 additions & 1 deletion bigjob/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
_conf_file = os.path.join(sys.prefix, _CONFIG_FILE)


print "using conf file: " + str(_conf_file)
#print "using conf file: " + str(_conf_file)

_config = ConfigParser.ConfigParser()
_config.read(_conf_file)
Expand Down Expand Up @@ -80,6 +80,9 @@
import socket
try:
fn = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", 'VERSION')
if not os.path.exists(fn):
fn = os.path.join(sys.prefix, 'VERSION')
#print "Open Version file: " + str(fn)
version = open(fn).read().strip()
logger.info("Loading BigJob version: " + version + " on " + socket.gethostname())
except IOError:
Expand Down
4 changes: 1 addition & 3 deletions bigjob/bigjob_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,9 @@ def __init__(self, args):
self.restarted = {}

# read config file
# conf_file = os.path.dirname(args[0]) + "/" + CONFIG_FILE
# conf_file = os.path.dirname(os.path.abspath( __file__ )) + "/" + CONFIG_FILE
conf_file = os.path.dirname(os.path.abspath( __file__ )) + "/../" + CONFIG_FILE
if not os.path.exists(conf_file):
_conf_file = os.path.join(sys.prefix, CONFIG_FILE)
conf_file = os.path.join(sys.prefix, CONFIG_FILE)

config = ConfigParser.ConfigParser()
logging.debug ("read configfile: " + conf_file)
Expand Down

0 comments on commit 6868cdf

Please sign in to comment.