mirror of
https://github.com/Akascape/Datamosher-Pro.git
synced 2025-12-07 00:39:58 +01:00
Fixed setup issue in python 3.12+
This commit is contained in:
@@ -3,12 +3,20 @@
|
|||||||
|
|
||||||
#Importing some built in modules
|
#Importing some built in modules
|
||||||
import subprocess
|
import subprocess
|
||||||
import pkg_resources
|
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
from zipfile import ZipFile
|
from zipfile import ZipFile
|
||||||
|
|
||||||
|
try:
|
||||||
|
import pkg_resources
|
||||||
|
except ImportError:
|
||||||
|
if sys.platform.startswith("win"):
|
||||||
|
subprocess.call('python -m pip install setuptools', shell=True)
|
||||||
|
else:
|
||||||
|
subprocess.call('python3 -m pip install setuptools', shell=True)
|
||||||
|
import pkg_resources
|
||||||
|
|
||||||
DIRPATH = os.path.dirname(os.path.realpath(__file__))
|
DIRPATH = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
#Checking the required folders
|
#Checking the required folders
|
||||||
|
|||||||
Reference in New Issue
Block a user