UIMA-6120 Don't try to get $PWD from the environment
git-svn-id: https://svn.apache.org/repos/asf/uima/uima-ducc/trunk@1865941 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/admin/ducc_update b/src/main/admin/ducc_update
index a3b1e37..d653f05 100755
--- a/src/main/admin/ducc_update
+++ b/src/main/admin/ducc_update
@@ -313,7 +313,7 @@
# Probably OK if from admin, but to be safe ...
#-----------------------------------------------------------------------------------------
-curdir = os.path.realpath(os.environ['PWD'])
+curdir = os.getcwd()
if curdir.startswith(runtime) and curdir != runtime:
print "ERROR - Cannot run from inside the runtime"
exit(1)