mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
*Trying*, as hard as possible, to be nice to Windows.
This commit is contained in:
parent
b1977a1b29
commit
9e0ab0e73b
@ -53,7 +53,10 @@ import utils
|
||||
import privmsgs
|
||||
import callbacks
|
||||
|
||||
pythonPath = map(os.path.dirname, [os.__file__, math.__file__])
|
||||
L = [os.__file__]
|
||||
if hasattr(math, '__file__'):
|
||||
L.append(math.__file__)
|
||||
pythonPath = map(os.path.dirname, L)
|
||||
|
||||
def configure(onStart, afterConnect, advanced):
|
||||
# This will be called by setup.py to configure this module. onStart and
|
||||
|
@ -42,7 +42,8 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
|
||||
if os.name == 'posix':
|
||||
self.assertNotRegexp('pydoc crypt.crypt', 'NameError')
|
||||
self.assertNotError('pydoc crypt.crypt')
|
||||
self.assertNotError('pydoc math.sin')
|
||||
# .so modules don't have an __file__ in Windows.
|
||||
self.assertNotError('pydoc math.sin')
|
||||
self.assertNotError('pydoc string.translate')
|
||||
self.assertNotError('pydoc fnmatch.fnmatch')
|
||||
self.assertNotError('pydoc socket.socket')
|
||||
|
Loading…
Reference in New Issue
Block a user