Merge pull request #2737 from acemod/revert-backslash

Revert the backslash in sqf validator
This commit is contained in:
Glowbal 2015-10-12 21:31:31 +02:00
commit 1242cc8349

View File

@ -150,11 +150,11 @@ def main():
args = parser.parse_args()
# Allow running from root directory as well as from inside the tools directory
rootDir = "..\\addons"
rootDir = "../addons"
if (os.path.exists("addons")):
rootDir = "addons"
for root, dirnames, filenames in os.walk(rootDir + '\\' + args.module):
for root, dirnames, filenames in os.walk(rootDir + '/' + args.module):
for filename in fnmatch.filter(filenames, '*.sqf'):
sqf_list.append(os.path.join(root, filename))