]> gitweb.pimeys.fr Git - bots/salesman.git/commitdiff
Oubli du check de l'option --daemon
authorSalesman bot IRC <salesman@crans.org>
Wed, 18 Jul 2012 20:01:08 +0000 (22:01 +0200)
committerSalesman bot IRC <salesman@crans.org>
Wed, 18 Jul 2012 20:01:08 +0000 (22:01 +0200)
capitales.txt
salesman.py

index bdcf7e2a6ac297d6fe7cdde28f5a55279db4b9e6..7f1996d7214262dfcf07d3f0a97bf4ccad18968f 100644 (file)
@@ -74,7 +74,7 @@
  73 | Prague | République tchèque
  74 | Praia | Cap-Vert
  75 | Putrajaya | Malaisie
  73 | Prague | République tchèque
  74 | Praia | Cap-Vert
  75 | Putrajaya | Malaisie
- 76 | Pyinmana | Birmanie
+ 76 | Naypyidaw | Birmanie
  77 | Quito | Équateur
  78 | Rangoon | Birmanie
  79 | Riga | Lettonie
  77 | Quito | Équateur
  78 | Rangoon | Birmanie
  79 | Riga | Lettonie
index e25a8d830d576b2f296dc67bf209da6e52809542..cd25494e06ff523b48c7c762839e4997f5b8b740 100755 (executable)
@@ -634,7 +634,13 @@ if __name__=="__main__":
         print "        --outfile sans --no-output ni --daemon n'a aucun effet"
         exit(1)
     serveur=sys.argv[1]
         print "        --outfile sans --no-output ni --daemon n'a aucun effet"
         exit(1)
     serveur=sys.argv[1]
-
+    if "--daemon" in sys.argv:
+        thisfile = os.path.realpath(__file__)
+        thisdirectory = thisfile.rsplit("/", 1)[0]
+        os.chdir(thisdirectory)
+        daemon = True
+    else:
+        daemon = False
     if "debug" in sys.argv or "--debug" in sys.argv:
         debug=True
     else:
     if "debug" in sys.argv or "--debug" in sys.argv:
         debug=True
     else: