From 44f5c0c82409b2f103e7eda72115490db36e6cbc Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 27 Aug 2013 17:18:27 -0500 Subject: [PATCH] exists to isdir, thanks Niphlod --- VERSION | 2 +- handlers/cgihandler.py | 2 +- handlers/fcgihandler.py | 2 +- handlers/gaehandler.py | 2 +- handlers/isapiwsgihandler.py | 2 +- handlers/modpythonhandler.py | 2 +- handlers/scgihandler.py | 2 +- handlers/wsgihandler.py | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VERSION b/VERSION index 358aced6..de22f44d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.6.0-development+timestamp.2013.08.27.16.59.52 +Version 2.6.0-development+timestamp.2013.08.27.17.17.06 diff --git a/handlers/cgihandler.py b/handlers/cgihandler.py index 0d1da193..bd5bdf92 100755 --- a/handlers/cgihandler.py +++ b/handlers/cgihandler.py @@ -57,7 +57,7 @@ import wsgiref.handlers path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] diff --git a/handlers/fcgihandler.py b/handlers/fcgihandler.py index 85e5117d..a9b047e2 100755 --- a/handlers/fcgihandler.py +++ b/handlers/fcgihandler.py @@ -35,7 +35,7 @@ import os path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] diff --git a/handlers/gaehandler.py b/handlers/gaehandler.py index ae1ce542..08aa4e22 100755 --- a/handlers/gaehandler.py +++ b/handlers/gaehandler.py @@ -36,7 +36,7 @@ path = os.path.dirname(os.path.abspath(__file__)) # os.chdir(path) ? -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] diff --git a/handlers/isapiwsgihandler.py b/handlers/isapiwsgihandler.py index 5bf9a7ed..02755150 100644 --- a/handlers/isapiwsgihandler.py +++ b/handlers/isapiwsgihandler.py @@ -10,7 +10,7 @@ def __ExtensionFactory__(): import sys path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) - if not os.path.exists('applications'): + if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] import gluon.main diff --git a/handlers/modpythonhandler.py b/handlers/modpythonhandler.py index 271cb861..388f37eb 100755 --- a/handlers/modpythonhandler.py +++ b/handlers/modpythonhandler.py @@ -35,7 +35,7 @@ from mod_python import apache path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] diff --git a/handlers/scgihandler.py b/handlers/scgihandler.py index 0f2cadb8..90b81fcd 100755 --- a/handlers/scgihandler.py +++ b/handlers/scgihandler.py @@ -48,7 +48,7 @@ import os path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path] diff --git a/handlers/wsgihandler.py b/handlers/wsgihandler.py index a136daa6..39b66d6c 100644 --- a/handlers/wsgihandler.py +++ b/handlers/wsgihandler.py @@ -27,7 +27,7 @@ import os path = os.path.dirname(os.path.abspath(__file__)) os.chdir(path) -if not os.path.exists('applications'): +if not os.path.isdir('applications'): raise RuntimeError('Running from the wrong folder') sys.path = [path] + [p for p in sys.path if not p == path]