Commits

Tim Hatch committed 724ca7d

Fix and update sourcemodbuiltins

Comments (0)

Files changed (1)

pygments/lexers/_sourcemodbuiltins.py

  'SetMenuExitButton',
  'GetMenuExitBackButton',
  'SetMenuExitBackButton',
+ 'SetMenuNoVoteButton',
  'CancelMenu',
  'GetMenuOptionFlags',
  'SetMenuOptionFlags',
  'IsDedicatedServer',
  'GetEngineTime',
  'GetGameTime',
+ 'GetGameTickCount',
  'GetGameDescription',
  'GetGameFolderName',
  'GetCurrentMap',
  'SDKCall']
 
 if __name__ == '__main__':
+    import pprint
     import re
+    import sys
     import urllib
-    import pprint
+
+    # urllib ends up wanting to import a module called 'math' -- if
+    # pygments/lexers is in the path, this ends badly.
+    for i in range(len(sys.path)-1, -1, -1):
+        if sys.path[i].endswith('/lexers'):
+            del sys.path[i]
 
     def get_version():
         f = urllib.urlopen('http://docs.sourcemod.net/api/index.php')