mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Update script executions to use realpath instead of abspath
This allows scripts to be executed via symlinks and still work
This commit is contained in:
@@ -7,7 +7,7 @@ import os
|
||||
os.nice(20)
|
||||
|
||||
# Activate the virtualenv
|
||||
path = os.path.dirname(os.path.abspath( __file__ ))
|
||||
path = os.path.dirname(os.path.realpath( __file__ ))
|
||||
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import os
|
||||
|
||||
# Activate the virtualenv
|
||||
path = os.path.dirname(os.path.abspath( __file__ ))
|
||||
path = os.path.dirname(os.path.realpath( __file__ ))
|
||||
os.chdir(path)
|
||||
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
|
||||
@@ -7,7 +7,7 @@ import os
|
||||
os.nice(20)
|
||||
|
||||
# Activate the virtualenv
|
||||
path = os.path.dirname(os.path.abspath( __file__ ))
|
||||
path = os.path.dirname(os.path.realpath( __file__ ))
|
||||
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user