mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3652 from acemod/setupAlwaysUseJunctions
Always use junctions for dev environment setup
This commit is contained in:
commit
8072c9db41
@ -25,19 +25,19 @@ def main():
|
|||||||
######################################
|
######################################
|
||||||
|
|
||||||
This script will create your ACE3 dev environment for you.
|
This script will create your ACE3 dev environment for you.
|
||||||
|
|
||||||
Before you run this, you should already have:
|
Before you run this, you should already have:
|
||||||
- The Arma 3 Tools installed properly via Steam
|
- The Arma 3 Tools installed properly via Steam
|
||||||
- A properly set up P-drive
|
- A properly set up P-drive
|
||||||
|
|
||||||
If you have not done those things yet, please abort this script in the next step and do so first.
|
If you have not done those things yet, please abort this script in the next step and do so first.
|
||||||
|
|
||||||
This script will create two hard links on your system, both pointing to your ACE3 project folder:
|
This script will create two hard links on your system, both pointing to your ACE3 project folder:
|
||||||
[Arma 3 installation directory]\\{} => ACE3 project folder
|
[Arma 3 installation directory]\\{} => ACE3 project folder
|
||||||
P:\\{} => ACE3 project folder
|
P:\\{} => ACE3 project folder
|
||||||
|
|
||||||
It will also copy the required CBA includes to {}, if you do not have the CBA source code already.""".format(FULLDIR,FULLDIR,CBA))
|
It will also copy the required CBA includes to {}, if you do not have the CBA source code already.""".format(FULLDIR,FULLDIR,CBA))
|
||||||
print("\n")
|
print("\n")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
||||||
@ -79,12 +79,8 @@ def main():
|
|||||||
if not os.path.exists(os.path.join(armapath, MAINDIR)):
|
if not os.path.exists(os.path.join(armapath, MAINDIR)):
|
||||||
os.mkdir(os.path.join(armapath, MAINDIR))
|
os.mkdir(os.path.join(armapath, MAINDIR))
|
||||||
|
|
||||||
if platform.win32_ver()[0] == "7":
|
subprocess.call(["cmd", "/c", "mklink", "/J", "P:\\{}\\{}".format(MAINDIR,PROJECTDIR), projectpath])
|
||||||
subprocess.call(["cmd", "/c", "mklink", "/D", "P:\\{}\\{}".format(MAINDIR,PROJECTDIR), projectpath])
|
subprocess.call(["cmd", "/c", "mklink", "/J", os.path.join(armapath, MAINDIR, PROJECTDIR), projectpath])
|
||||||
subprocess.call(["cmd", "/c", "mklink", "/D", os.path.join(armapath, MAINDIR, PROJECTDIR), projectpath])
|
|
||||||
else:
|
|
||||||
subprocess.call(["cmd", "/c", "mklink", "/D", "/J", "P:\\{}\\{}".format(MAINDIR,PROJECTDIR), projectpath])
|
|
||||||
subprocess.call(["cmd", "/c", "mklink", "/D", "/J", os.path.join(armapath, MAINDIR, PROJECTDIR), projectpath])
|
|
||||||
except:
|
except:
|
||||||
raise
|
raise
|
||||||
print("Something went wrong during the link creation. Please finish the setup manually.")
|
print("Something went wrong during the link creation. Please finish the setup manually.")
|
||||||
|
Loading…
Reference in New Issue
Block a user