Library loading now also include cwd
When option search_local_libs is set to True, search also in the
current working directory for a lib folder.
@@ -59,7 +59,9 @@ _is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc
if pyglet.options['search_local_libs']:
script_path = pyglet.resource.get_script_home()
- _local_lib_paths = [script_path, os.path.join(script_path, 'lib'),]
+ cwd = os.getcwd()
+ _local_lib_paths = [script_path, os.path.join(script_path, 'lib'),
+ os.path.join(cwd, 'lib')]
if pyglet.compat_platform == 'win32':
os.environ["PATH"] += os.pathsep + os.pathsep.join(_local_lib_paths)
else:
