summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabien Boucher <fabien.boucher@enovance.com>2015-05-29 19:34:33 +0000
committerPaul Belanger <pabelanger@redhat.com>2016-02-16 13:19:19 -0500
commitc2f861b491cd64e69b84613076653bccc189bdab (patch)
tree88830e750a316d7b05478cdfb4f0dbc3fa098246
parentbb681360fcbcbb9a9b53f7e0fc02a752996a3cf3 (diff)
downloadgear-c2f861b491cd64e69b84613076653bccc189bdab.tar.gz
Remove shebang as the script is managed by an entry_point
The shebang is not needed in cmd/geard.py. The file is not intended to be used directly as it is managed by an entry_point. Change-Id: I4e2a8715cca81a8626f6bcd86a368a537305bc0b Signed-off-by: Paul Belanger <pabelanger@redhat.com>
-rw-r--r--gear/cmd/geard.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/gear/cmd/geard.py b/gear/cmd/geard.py
index 227f1cd..e270b39 100644
--- a/gear/cmd/geard.py
+++ b/gear/cmd/geard.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
@@ -127,8 +126,3 @@ def main():
pid = pid_file_module.TimeoutPIDLockFile(server.args.pidfile, 10)
with daemon.DaemonContext(pidfile=pid):
server.main()
-
-
-if __name__ == "__main__":
- sys.path.insert(0, '.')
- main()