aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/matches.rs
diff options
context:
space:
mode:
authorXander <xander@biltopia.org>2023-10-22 12:31:51 +0200
committerXander <xander@biltopia.org>2023-10-22 12:31:51 +0200
commit3ac0ecfec25617e5282f507de615c8ea5a29b69d (patch)
tree3c8539c026c5356947896cf751bfe576461f97ef /planetwars-server/src/modules/matches.rs
parentccee0f7ca6dc2b2542b84922d855f51204033b8a (diff)
downloadplanetwars.dev-3ac0ecfec25617e5282f507de615c8ea5a29b69d.tar.xz
planetwars.dev-3ac0ecfec25617e5282f507de615c8ea5a29b69d.zip
Add containerfile and fix all issues
Diffstat (limited to 'planetwars-server/src/modules/matches.rs')
-rw-r--r--planetwars-server/src/modules/matches.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/planetwars-server/src/modules/matches.rs b/planetwars-server/src/modules/matches.rs
index 489a9fa..f5f9f2a 100644
--- a/planetwars-server/src/modules/matches.rs
+++ b/planetwars-server/src/modules/matches.rs
@@ -141,8 +141,9 @@ pub fn bot_version_to_botspec(
}
fn python_docker_bot_spec(config: &GlobalConfig, code_bundle_path: &str) -> Box<dyn BotSpec> {
- let code_bundle_rel_path = PathBuf::from(&config.bots_directory).join(code_bundle_path);
- let code_bundle_abs_path = std::fs::canonicalize(&code_bundle_rel_path).unwrap();
+ let code_bundle_abs_path = PathBuf::from("/home/planetwars/data/bots").join(code_bundle_path);
+ //let code_bundle_abs_path = std::fs::canonicalize(&code_bundle_rel_path).unwrap();
+ println!("{}",code_bundle_abs_path.display());
let code_bundle_path_str = code_bundle_abs_path.as_os_str().to_str().unwrap();
// TODO: it would be good to simplify this configuration