Revert the backslash in sqf validator

- Use a forward slash in path for travis to work properly
This commit is contained in:
Glowbal 2015-10-12 21:29:50 +02:00
parent 7062f60f0a
commit 3e4906fa7e

View File

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