mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Always use junctions for dev environment setup
This commit is contained in:
parent
8eb7d28e29
commit
a9fd7c4d6f
@ -25,19 +25,19 @@ def main():
|
||||
######################################
|
||||
|
||||
This script will create your ACE3 dev environment for you.
|
||||
|
||||
|
||||
Before you run this, you should already have:
|
||||
- The Arma 3 Tools installed properly via Steam
|
||||
- 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.
|
||||
|
||||
|
||||
This script will create two hard links on your system, both pointing to your ACE3 project folder:
|
||||
[Arma 3 installation directory]\\{} => 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))
|
||||
print("\n")
|
||||
print("\n")
|
||||
|
||||
try:
|
||||
reg = winreg.ConnectRegistry(None, winreg.HKEY_LOCAL_MACHINE)
|
||||
@ -79,12 +79,8 @@ def main():
|
||||
if not os.path.exists(os.path.join(armapath, MAINDIR)):
|
||||
os.mkdir(os.path.join(armapath, MAINDIR))
|
||||
|
||||
if platform.win32_ver()[0] == "7":
|
||||
subprocess.call(["cmd", "/c", "mklink", "/D", "P:\\{}\\{}".format(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])
|
||||
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:
|
||||
raise
|
||||
print("Something went wrong during the link creation. Please finish the setup manually.")
|
||||
|
Loading…
Reference in New Issue
Block a user