Fix multiprocessing crash on windows.
This commit is contained in:
parent
bc46d83452
commit
ac4b139b08
13
2dxutils
13
2dxutils
@ -1,9 +1,10 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module("bemani.utils.twodxutils", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module("bemani.utils.twodxutils", run_name="__main__")
|
15
afputils
15
afputils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
api
15
api
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
arcutils
15
arcutils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
bemanishark
15
bemanishark
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
binutils
15
binutils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
cardconvert
15
cardconvert
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
dbutils
15
dbutils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
frontend
15
frontend
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
ifsutils
15
ifsutils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
iidxutils
15
iidxutils
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
proxy
15
proxy
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
psmap
15
psmap
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
read
15
read
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
replay
15
replay
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
responsegen
15
responsegen
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
scheduler
15
scheduler
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
services
15
services
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
13
shell
13
shell
@ -1,9 +1,10 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import code
|
||||
code.InteractiveConsole().interact()
|
||||
import code
|
||||
code.InteractiveConsole().interact()
|
15
struct
15
struct
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
15
trafficgen
15
trafficgen
@ -1,10 +1,11 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
name = os.path.basename(__file__)
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module(f"bemani.utils.{name}", run_name="__main__")
|
27
verifylibs
27
verifylibs
@ -1,16 +1,17 @@
|
||||
#! /usr/bin/env python3
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
if __name__ == "__main__":
|
||||
import os
|
||||
path = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
sys.argv = [
|
||||
sys.argv[0],
|
||||
"discover",
|
||||
"-s",
|
||||
os.path.join(path, "bemani/tests"),
|
||||
*sys.argv[1:],
|
||||
]
|
||||
import sys
|
||||
sys.path.append(path)
|
||||
sys.argv = [
|
||||
sys.argv[0],
|
||||
"discover",
|
||||
"-s",
|
||||
os.path.join(path, "bemani/tests"),
|
||||
*sys.argv[1:],
|
||||
]
|
||||
|
||||
import runpy
|
||||
runpy.run_module("unittest", run_name="__main__")
|
||||
import runpy
|
||||
runpy.run_module("unittest", run_name="__main__")
|
Loading…
Reference in New Issue
Block a user