fix for Linux
This commit is contained in:
@@ -2,6 +2,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import argparse
|
import argparse
|
||||||
|
import multiprocessing
|
||||||
from utils import Path_utils
|
from utils import Path_utils
|
||||||
from utils import os_utils
|
from utils import os_utils
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
@@ -13,7 +14,9 @@ class fixPathAction(argparse.Action):
|
|||||||
def __call__(self, parser, namespace, values, option_string=None):
|
def __call__(self, parser, namespace, values, option_string=None):
|
||||||
setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values)))
|
setattr(namespace, self.dest, os.path.abspath(os.path.expanduser(values)))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
multiprocessing.set_start_method("spawn")
|
||||||
|
|
||||||
os_utils.set_process_lowest_prio()
|
os_utils.set_process_lowest_prio()
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user