We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd54fd3 commit f1ba358Copy full SHA for f1ba358
seleniumbase/__main__.py
@@ -0,0 +1,22 @@
1
+import os
2
+import sys
3
+
4
+# Remove "" and current working directory from the first entry
5
+# of sys.path (if present) to avoid using the current directory
6
+# in SeleniumBase commands when invoked as "python -m seleniumbase <command>"
7
+if sys.path[0] in ("", os.getcwd()):
8
+ sys.path.pop(0)
9
10
+if __package__ == "":
11
+ path = os.path.dirname(os.path.dirname(__file__))
12
+ sys.path.insert(0, path)
13
14
+if __name__ == "__main__":
15
+ import warnings
16
+ from seleniumbase.console_scripts.run import main
17
18
+ warnings.filterwarnings(
19
+ "ignore", category=DeprecationWarning, module=".*packaging\\.version"
20
+ )
21
+ main()
22
+ sys.exit()
0 commit comments