mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-29 06:51:08 -05: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 privmsgs
|
||||||
import callbacks
|
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):
|
def configure(onStart, afterConnect, advanced):
|
||||||
# This will be called by setup.py to configure this module. onStart and
|
# This will be called by setup.py to configure this module. onStart and
|
||||||
|
@ -42,6 +42,7 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
if os.name == 'posix':
|
if os.name == 'posix':
|
||||||
self.assertNotRegexp('pydoc crypt.crypt', 'NameError')
|
self.assertNotRegexp('pydoc crypt.crypt', 'NameError')
|
||||||
self.assertNotError('pydoc crypt.crypt')
|
self.assertNotError('pydoc crypt.crypt')
|
||||||
|
# .so modules don't have an __file__ in Windows.
|
||||||
self.assertNotError('pydoc math.sin')
|
self.assertNotError('pydoc math.sin')
|
||||||
self.assertNotError('pydoc string.translate')
|
self.assertNotError('pydoc string.translate')
|
||||||
self.assertNotError('pydoc fnmatch.fnmatch')
|
self.assertNotError('pydoc fnmatch.fnmatch')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user