Bugfixed autoload.php stuff

This commit is contained in:
Chris 2018-04-06 01:35:44 +02:00
parent 7ef6aa2581
commit 4b6f199286

View File

@ -1,10 +1,12 @@
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
if (file_exists(__DIR__."/../vendor")) echo __DIR__."\n";
if (is_dir(__DIR__."/../vendor"))
require_once __DIR__."/../vendor/autoload.php"; require_once __DIR__."/../vendor/autoload.php";
elseif (file_exists(__DIR__."/../../../vendor")) elseif (file_exists(__DIR__."/../../../autoload.php"))
require_once __DIR__."/../../../vendor/autoload.php"; require_once __DIR__."/../../../autoload.php";
else else
die("Could not locate composer vendor/autoload.php"); die("Could not locate composer vendor/autoload.php");