Permalink
Browse files

another bug.

  • Loading branch information...
1 parent 703d444 commit 40d7d4d9b4ac60b6a52fd41730904cda240f7aa2 BuzzTroll committed Sep 10, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lantorrent/pylantorrent/__init__.py
@@ -81,7 +81,7 @@ def load_settings(self, ini_file):
s = SafeConfigParser()
s.readfp(open(ini_file, "r"))
self.pw = s.get("security", "password")
- self.logfile = s.get("log", "file").replace("@LANTORRENT_HOME@", self.lt_home).replace("@PGM@", sys.argv[0])
+ self.logfile = s.get("log", "file").replace("@LANTORRENT_HOME@", self.lt_home).replace("@PGM@", os.path.basename(sys.argv[0]))
try:
log_level_str = s.get("log", "level")
self.log_level = log_levels[log_level_str]

0 comments on commit 40d7d4d

Please sign in to comment.