--- a/pyke/krb_compiler/kfbparser.py
+++ b/pyke/krb_compiler/kfbparser.py
@@ -143,9 +143,8 @@
     '''
         >>> from pyke.krb_compiler import kfbparser
         >>> kfbparser.parse(kfbparser,
-        ...                 'TEST/kfbparse_test.kfb'
-        ...                 if os.path.split(os.getcwd())[1] == 'krb_compiler'
-        ...                 else 'krb_compiler/TEST/kfbparse_test.kfb',
+        ...                 os.path.join(os.path.dirname(__file__),
+        ...                              'TEST/kfbparse_test.kfb'),
         ...                 True)
         <fact_base kfbparse_test>
     '''