#################################################################################
# Welcome to the info file! #
# #
# This file was formerly known as module_info.py. Don't change the name of this #
# file! #
# #
# Here you set the path where you want to compile the source to. #
# export_dir_main_guest is your main Warband directory. The source will #
# automatically create the standard Floris #
# directory where you compile and build to. #
# export_dir_custom_guest is a custom directory of your liking. If you #
# don't want to compile to the standard directory,#
# the source will compile to this one. #
# If you need examples, please scroll down for the directories the devs use. #
# Make sure you use forward slashes (/) and NOT backward slashes (\). #
#################################################################################
export_dir_main_guest = "C:/Program Files (x86)/Mount&Blade Warband/"
export_dir_custom_guest = "./TotallyCheating/"
#################################################################################
# Don't change anything below this point unless you know what you're doing. #
#################################################################################
#################################################################################
# Here are the directories used by the devs of the Floris Mod Pack. #
#################################################################################
# Monnikje:
export_dir_main_monnikje = "C:/lan/Mount&Blade Warband 1.143/"
export_dir_custom_monnikje = "./Floris/"
# Duh:
export_dir_main_duh = "C:/Users/Duh/Desktop/Mount&Blade WarbandNEW/"
export_dir_custom_duh = "./Floris Expanded Mod Pack 2.4/"
# Caba`Drin:
export_dir_main_caba = "E:/Games/Mount&Blade Warband/"
export_dir_custom_caba = "./Floris 2.5 Dev/"
# Windyplains:
export_dir_main_windy = "C:/Program Files (x86)/Steam/steamapps/common/mountblade warband/"
export_dir_custom_windy = "./Floris Mod Pack 2.5/"
# WeaponsOfTheMass:
export_dir_main_weapons = "C:/Program Files (x86)/Mount&Blade Warband/"
export_dir_custom_weapons = "./Floris Expanded Mod Pack 2.5/"
#################################################################################
# Here are the some standard Warband directories. #
#################################################################################
# TaleWorlds normal install:
export_dir_main_normal = "C:/Program Files/Mount&Blade Warband/"
export_dir_custom_normal = "./Native/"
# Steam install:
export_dir_main_steam = "C:/Program Files (x86)/Steam/steamapps/common/mountblade warband/"
export_dir_custom_steam = "./Native/"
#################################################################################
# These are the standard directories where the different versions are build and #
# compiled to. Changing this will affect the directories that are automatically #
# created, so do so with care. #
#################################################################################
export_dir_basic = "./Modules/Floris Basic Mod Pack 2.5/"
export_dir_expanded = "./Modules/Floris Expanded Mod Pack 2.5/"
export_dir_gameplay = "./Modules/Floris Gameplay Mod Pack 2.5/"
export_dir_native = "./Modules/Native 1.143/"
#################################################################################
# These are the directories where copies of the compiled files are copied to. #
# It is important for the installer. Don't change this! #
#################################################################################
intern_dir_basic = "../Compiled Files/Basic/"
intern_dir_basic_custom = "./Compiled Files/Basic/"
intern_dir_expanded = "../Compiled Files/Expanded/"
intern_dir_expanded_custom = "./Compiled Files/Expanded/"
intern_dir_gameplay = "../Compiled Files/Gameplay/"
intern_dir_gameplay_custom = "./Compiled Files/Gameplay/"
intern_dir_native = "../Compiled Files/Native/"
intern_dir_native_custom = "./Compiled Files/Native/"
#################################################################################
# This is the main folder where everything is compiled to. Don't change it! #
#################################################################################
export_dir = "./"
#################################################################################
# And here is the code which determines automatically what directory to use. #
# First importing important python stuff: #
#################################################################################
import os
#################################################################################
# Now check what directory exists, create module_info.py and write the right #
# info to that directory. This is the exact reason why this file isn't called #
# module_info.py anymore. #
#################################################################################
f = open("./module_info.py","w")
line = f.write("from info import *\n")
if os.path.exists(export_dir_main_guest):
line = f.write("export_dir_main = export_dir_main_guest\n")
line = f.write("export_dir_custom = export_dir_custom_guest\n")
elif os.path.exists(export_dir_main_duh):
line = f.write("export_dir_main = export_dir_main_duh\n")
line = f.write("export_dir_custom = export_dir_custom_duh\n")
elif os.path.exists(export_dir_main_caba):
line = f.write("export_dir_main = export_dir_main_caba\n")
line = f.write("export_dir_custom = export_dir_custom_caba\n")
elif os.path.exists(export_dir_main_windy):
line = f.write("export_dir_main = export_dir_main_windy\n")
line = f.write("export_dir_custom = export_dir_custom_windy\n")
elif os.path.exists(export_dir_main_weapons):
line = f.write("export_dir_main = export_dir_main_weapons\n")
line = f.write("export_dir_custom = export_dir_custom_weapons\n")
elif os.path.exists(export_dir_main_monnikje):
line = f.write("export_dir_main = export_dir_main_monnikje\n")
line = f.write("export_dir_custom = export_dir_custom_monnikje\n")
elif os.path.exists(export_dir_main_steam):
line = f.write("export_dir_main = export_dir_main_steam\n")
line = f.write("export_dir_custom = export_dir_custom_steam\n")
else:
line = f.write("export_dir_main = export_dir_main_normal\n")
line = f.write("export_dir_custom = export_dir_custom_normal\n")
f.close()