mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 14:52:15 +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)
|
os.nice(20)
|
||||||
|
|
||||||
# Activate the virtualenv
|
# 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')
|
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||||
execfile(activate_this, dict(__file__=activate_this))
|
execfile(activate_this, dict(__file__=activate_this))
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# Activate the virtualenv
|
# Activate the virtualenv
|
||||||
path = os.path.dirname(os.path.abspath( __file__ ))
|
path = os.path.dirname(os.path.realpath( __file__ ))
|
||||||
os.chdir(path)
|
os.chdir(path)
|
||||||
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||||
execfile(activate_this, dict(__file__=activate_this))
|
execfile(activate_this, dict(__file__=activate_this))
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import os
|
|||||||
os.nice(20)
|
os.nice(20)
|
||||||
|
|
||||||
# Activate the virtualenv
|
# 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')
|
activate_this = os.path.join(path, 'env/bin/activate_this.py')
|
||||||
execfile(activate_this, dict(__file__=activate_this))
|
execfile(activate_this, dict(__file__=activate_this))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user