File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1+ use std:: path:: PathBuf ;
2+
13use clap:: Parser ;
24use xshell:: { Shell , cmd} ;
35
@@ -29,7 +31,7 @@ fn execute_generate_fbs() -> anyhow::Result<()> {
2931 ] ;
3032
3133 // CD to vortex-flatbuffers project
32- sh. change_dir ( std :: env:: current_dir ( ) ? . join ( "vortex-flatbuffers" ) ) ;
34+ sh. change_dir ( PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) . join ( "../ vortex-flatbuffers" ) ) ;
3335
3436 cmd ! (
3537 sh,
@@ -41,7 +43,7 @@ fn execute_generate_fbs() -> anyhow::Result<()> {
4143}
4244
4345fn execute_generate_proto ( ) -> anyhow:: Result < ( ) > {
44- let vortex_proto = std :: env:: current_dir ( ) ? . join ( "vortex-proto" ) ;
46+ let vortex_proto = PathBuf :: from ( env ! ( "CARGO_MANIFEST_DIR" ) ) . join ( "../ vortex-proto" ) ;
4547 let proto_files = vec ! [
4648 vortex_proto. join( "proto" ) . join( "dtype.proto" ) ,
4749 vortex_proto. join( "proto" ) . join( "scalar.proto" ) ,
You can’t perform that action at this time.
0 commit comments