Commit 98bdcdd Bright-yaw
committed
1 parent 15c3325 commit 98bdcdd Copy full SHA for 98bdcdd
File tree 2 files changed +15
-2
lines changed
2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,18 @@ using DBFTables
8
8
using DataFrames
9
9
using Logging
10
10
using Libdl
11
+ using Base. Filesystem
11
12
12
13
13
14
# Defining function dbctodbf
14
15
function dbctodbf (input_file:: String , output_file:: String )
16
+ # Set path for .dll files
17
+ lib_path = " src/libdbc2dbf.dll"
18
+ # Change permissions on the file before loading (optional and platform-dependent)
19
+ chmod (lib_path, 0o755 )
20
+
15
21
# Load the shared library
16
- lib = dlopen (" src/libdbc2dbf.dll " )
22
+ lib = dlopen (lib_path )
17
23
18
24
# Ensure the library is properly loaded
19
25
if lib === C_NULL
Original file line number Diff line number Diff line change 1
1
using Libdl
2
+ using Base. Filesystem
2
3
3
4
function dbctodbf (input_file:: String , output_file:: String )
5
+
6
+ # Set path for .dll files
7
+ lib_path = " src/libdbc2dbf.dll"
8
+ # Change permissions on the file before loading (optional and platform-dependent)
9
+ chmod (lib_path, 0o755 )
10
+
4
11
# Load the shared library
5
- lib = dlopen (" libdbc2dbf.dll " )
12
+ lib = dlopen (lib_path )
6
13
7
14
# Ensure the library is properly loaded
8
15
if lib === C_NULL
You can’t perform that action at this time.
0 commit comments